dq_hot_cell: Configure individual cells of rhandsontable widget

Description Usage Arguments Author(s) Examples

View source: R/hot_helpers.R

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

1

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

Author(s)

richard.kunze

Examples

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

dqshiny documentation built on May 2, 2019, 1:43 p.m.