Set group by options
Usage
set_options_group_by(
widget,
group_by,
group_start_open = TRUE,
group_toggle_element = "header",
...
)
Arguments
- widget
A
tabulator()
HTML widget.- 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_by
.- group_toggle_element
(character, bool): One of
arrow
orheader
. Set toFALSE
to disable toggling at all.- ...
Further options.
Value
The updated tabulator()
HTML widget
Examples
tabulator(iris) |>
set_options_group_by("Species", group_start_open = FALSE)