View source: R/tabulator_options.R
set_options_group_by | R Documentation |
Set group by options
set_options_group_by(
widget,
group_by,
group_start_open = TRUE,
group_toggle_element = "header",
...
)
widget |
A |
group_by |
(character vector): Field to group rows by. Pass multiple values for multi level grouping. |
group_start_open |
(bool vector): Open state of groups when grouping is enabled.
The length of the vector depends on the number of levels set with |
group_toggle_element |
(character, bool): One of |
... |
Further options. |
The updated tabulator()
HTML widget
tabulator(iris) |>
set_options_group_by("Species", group_start_open = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.