hot_cell: Handsontable widget

Description Usage Arguments See Also Examples

View source: R/rhandsontable.R

Description

Configure single cell. See Handsontable.js for details.

Usage

1
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

hot_cols, hot_rows

Examples

1
2
3
4
5
6
7
8
9
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)

Example output



rhandsontable documentation built on May 27, 2021, 5:07 p.m.