Skip to content

Fix typo in javascript-api.Rmd #406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vignettes/javascript-api.Rmd
Original file line number Diff line number Diff line change
@@ -245,7 +245,7 @@ A string with the table data in CSV format.
const csv = Reactable.getDataCSV('cars-table')
console.log(csv)

// Get table data as a tab-separted values string
// Get table data as a tab-separated values string
const tsv = Reactable.getDataCSV('cars-table', { sep: '\t' })
console.log(tsv)
```
@@ -486,7 +486,7 @@ Reactable.setHiddenColumns(
Reactable.setHiddenColumns('cars-table', ['Type', 'Manufacturer'])

// Set hidden columns using a function that adds "Type" to the existing hidden columns
Reactable.setMeta('cars-table', prevHiddenColumns => {
Reactable.setHiddenColumns('cars-table', prevHiddenColumns => {
return prevHiddenColumns.concat('Type')
})