hot_table: Handsontable widget

Description Usage Arguments See Also Examples

View source: R/rhandsontable.R

Description

Configure table. See Handsontable.js for details.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
hot_table(
  hot,
  contextMenu = TRUE,
  stretchH = "none",
  customBorders = NULL,
  highlightRow = NULL,
  highlightCol = NULL,
  enableComments = FALSE,
  overflow = NULL,
  rowHeaderWidth = NULL,
  ...
)

Arguments

hot

rhandsontable object

contextMenu

logical enabling the right-click menu

stretchH

character describing column stretching. Options are 'all', 'right', and 'none'

customBorders

json object

highlightRow

logical enabling row highlighting for the selected cell

highlightCol

logical enabling column highlighting for the selected cell

enableComments

logical enabling comments in the table

overflow

character setting the css overflow behavior. Options are auto (default), hidden and visible

rowHeaderWidth

numeric width (in px) for the rowHeader column

...

passed to Handsontable.js constructor

See Also

rhandsontable

Examples

1
2
3
4
5
6
7
8
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_table(highlightCol = TRUE, highlightRow = TRUE)

Example output



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