Configure multiple columns.
hot_cols(
hot,
colWidths = NULL,
columnSorting = NULL,
manualColumnMove = NULL,
manualColumnResize = NULL,
fixedColumnsLeft = NULL,
...
)
rhandsontable object
a scalar or numeric vector of column widths
logical enabling row sorting. Sorting only alters the table presentation and the original dataset row order is maintained. The sorting will be done when a user click on column name
logical enabling column drag-and-drop reordering
logical enabline column width resizing
a scalar indicating the number of columns to freeze on the left
passed to hot_col
# NOT RUN {
library(rhandsontable)
DF = data.frame(val = 1:10, bool = TRUE, big = LETTERS[1:10],
small = letters[1:10],
dt = seq(from = Sys.Date(), by = "days", length.out = 10),
stringsAsFactors = FALSE)
rhandsontable(DF) %>%
hot_cols(columnSorting = TRUE)
# }
Run the code above in your browser using DataLab