| grid_columns_opts {toastui} | R Documentation | 
Set global columns options
Description
Set options for all columns.
Usage
grid_columns_opts(
  grid,
  minWidth = NULL,
  resizable = NULL,
  frozenCount = NULL,
  frozenBorderWidth = NULL
)
Arguments
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.  | 
Value
A datagrid htmlwidget.
Examples
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
  )
[Package toastui version 0.3.3 Index]