Configure single cell. See Handsontable.js for details.

hot_cell(hot, row, col, comment = NULL, readOnly = NULL)

Arguments

hot

rhandsontable object

row

numeric row index

col

column name or index

comment

character comment to add to cell

readOnly

logical making the cell read-only

See also

Examples

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_cell(1, 1, comment = "Test comment") %>%
  hot_cell(2, 3, readOnly = TRUE)
#> Warning: as.character(td, ..) no longer obeys a 'format' argument; use format(td, ..) ?