Learn R Programming

dqshiny (version 0.0.3)

dq_hot_cell: Configure individual cells of rhandsontable widget

Description

Configure individual cells of a rhandsontable widget. Can be used just like hot_cols or hot_col to specify custom options or cells. All possible combinations of row and column indices will be set.

Usage

dq_hot_cell(hot, row, col, ...)

Arguments

hot

rhandsontable object

row

integer vector specifying the rows to configure

col

integer vector specifying the columns to configure

...

parameters to be set in the cells, can be all rhandsontable parameters and additional custom ones used with custom renderers or editors

Examples

Run this code
# NOT RUN {
df <- data.frame(readOrWrite = rep(c("readOnly", "change me!"), 5),
  secret = rep("tops3cr3t", 10), stringsAsFactors = FALSE)

hot <- rhandsontable::rhandsontable(df, rowHeaders = NULL)
hot <- dq_hot_cell(hot, seq(1, 10, 2), 1:2, readOnly = TRUE)
hot <- dq_hot_cell(hot, seq(1, 10, 2), 2, type = "password")
hot
# }

Run the code above in your browser using DataLab