grid_columns_opts | R Documentation |
Set options for all columns.
grid_columns_opts(
grid,
minWidth = NULL,
resizable = NULL,
frozenCount = NULL,
frozenBorderWidth = NULL
)
grid |
A table created with |
minWidth |
Minimum width of each columns. |
resizable |
If set to true, resize-handles of each columns will be shown. |
frozenCount |
The number of frozen columns. |
frozenBorderWidth |
The value of frozen border width. When the frozen columns are created by "frozenCount" option, the frozen border width set. |
A datagrid
htmlwidget.
library(toastui)
# Set minimal width for columns
datagrid(countries) %>%
grid_columns_opts(
minWidth = 140
)
# Freeze two first columns
datagrid(countries) %>%
grid_columns_opts(
minWidth = 140,
frozenCount = 2,
frozenBorderWidth = 5
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.