Skip to contents

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.

Usage

combined_named_lists(...)

Arguments

...

Multiple sets of column definitions generated by functions like colDef_sticky, colDef_hide, colDef_minwidth, etc.

Value

A named list of combined column definitions suitable for use in a Reactable table.

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"