View source: R/cheetah_utils.R
column_group | R Documentation |
Creates a column group definition for grouping columns in a Cheetah Grid widget.
column_group(name = NULL, columns, header_style = NULL)
name |
Character string. The name to display for the column group. |
columns |
Character vector. The names of the columns to include in this group. |
header_style |
Named list of possibleCSS style properties to apply to the column group header. |
A list containing the column group definition.
cheetah(
iris,
columns = list(
Sepal.Length = column_def(name = "Length"),
Sepal.Width = column_def(name = "Width"),
Petal.Length = column_def(name = "Length"),
Petal.Width = column_def(name = "Width")
),
column_group = list(
column_group(name = "Sepal", columns = c("Sepal.Length", "Sepal.Width")),
column_group(name = "Petal", columns = c("Petal.Length", "Petal.Width"))
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.