Configure the options for the right-click context menu
hot_context_menu(
hot,
allowRowEdit = TRUE,
allowColEdit = TRUE,
allowReadOnly = FALSE,
allowComments = FALSE,
allowCustomBorders = FALSE,
customOpts = NULL,
...
)rhandsontable object
logical enabling row editing
logical enabling column editing. Note that Handsontable does not support column add/remove when column types are defined (i.e. useTypes == TRUE in rhandsontable).
logical enabling read-only toggle
logical enabling comments
logical enabling custom borders
list
ignored
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_context_menu(allowRowEdit = FALSE, allowColEdit = FALSE)
#> Warning: as.character(td, ..) no longer obeys a 'format' argument; use format(td, ..) ?