Combine multiple column definitions into a single named list for use in a Reactable table
combined_named_lists.Rd
The combined_named_lists
function combines multiple column definitions generated by
various functions into a single named list suitable for use in a Reactable table. It takes
multiple sets of column definitions as input and combines them into a single named list.
Arguments
- ...
Multiple sets of column definitions generated by functions like
colDef_sticky
,colDef_hide
,colDef_minwidth
, etc.
Examples
mtcars %>%
rownames_to_column("cars") %>%
reactable(
defaultColDef = colDef(footerStyle = list(fontWeight = "bold")),
groupBy = "cars",
columns = combined_named_lists(
colDef_sticky(cols = c("cars", "mpg"))
,colDef_hide(cols = c("vs", "am", "gear", "carb", "wt"))
)
)
#> Error in map(item_list, names): could not find function "map"