I am following this tutorial here : https://glin.github.io/reactable/articles/examples.html#language-options - I am trying to make an interactive table. I copy/pasted the following code below and it successfully made an interactive table:
library(reactable)
data <- MASS::Cars93[, c("Manufacturer", "Model", "Type", "Price")]
reactable(
data,
columns = list(
Manufacturer = colDef(
filterable = TRUE,
# Filter by case-sensitive text match
filterMethod = JS("function(rows, columnId, filterValue) {
return rows.filter(function(row) {
return row.values[columnId].indexOf(filterValue) !== -1
})
}")
)
),
defaultPageSize = 5
)
My only question is that the font/style of my output looks different than the tutorial (I just grabbed a screenshot for one of the tables from the tutorial, the font/style for all the tables is the same):
- Does anyone know why my font/style does not match the ones in the tutorial and is there some default option I can specify to fix this?
Thank you!



