Learn R Programming

rhandsontable (version 0.1)

hot_table: Handsontable widget

Description

Configure table. See http://handsontable.com{Handsontable.js} for details.

Usage

hot_table(hot, contextMenu = TRUE, allowRowEdit = TRUE,
  allowColEdit = TRUE, customBorders = NULL, groups = NULL,
  highlightRow = NULL, highlightCol = NULL, comments = NULL,
  exportToCsv = NULL, csvFileName = "download.csv", ...)

Arguments

hot
rhandsontable object
contextMenu
logical enabling the right-click menu
allowRowEdit
logical enabling right-click row options
allowColEdit
logical enabling right-click column options
customBorders
json object. See http://handsontable.com/demo/custom_borders.html{Custom borders} for details.
groups
json object. See http://handsontable.com/demo/grouping.html{Grouping & ungrouping of rows and columns} for details.
highlightRow
logical enabling row highlighting for the selected cell
highlightCol
logical enabling column highlighting for the selected cell
comments
logical enabling comments in the table, including the corresponding options in the right-click menu. User comments are not currently returned to R.
exportToCsv
logical adding a context menu option to export the table data to a csv file
csvFileName
character csv file name
...
passed to http://handsontable.com{Handsontable.js} constructor

Examples

Run this code
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,
          allowRowEdit = FALSE, allowColEdit = FALSE)

Run the code above in your browser using DataLab