hot_context_menu: Handsontable widget

Description Usage Arguments Examples

View source: R/rhandsontable.R

Description

Configure the options for the right-click context menu

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
hot_context_menu(
  hot,
  allowRowEdit = TRUE,
  allowColEdit = TRUE,
  allowReadOnly = FALSE,
  allowComments = FALSE,
  allowCustomBorders = FALSE,
  customOpts = NULL,
  ...
)

Arguments

hot

rhandsontable object

allowRowEdit

logical enabling row editing

allowColEdit

logical enabling column editing. Note that Handsontable does not support column add/remove when column types are defined (i.e. useTypes == TRUE in rhandsontable).

allowReadOnly

logical enabling read-only toggle

allowComments

logical enabling comments

allowCustomBorders

logical enabling custom borders

customOpts

list

...

ignored

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_context_menu(allowRowEdit = FALSE, allowColEdit = FALSE)

Example output



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