Debian Codegraph @

man/rhandsontable.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/rhandsontable.R
3 \name{rhandsontable}
4 \alias{rhandsontable}
5 \title{Handsontable widget}
6 \usage{
7 rhandsontable(
8 data,
9 colHeaders,
10 rowHeaders,
11 comments = NULL,
12 useTypes = TRUE,
13 readOnly = NULL,
14 selectCallback = FALSE,
15 width = NULL,
16 height = NULL,
17 digits = 4,
18 debug = NULL,
19 search = FALSE,
20 ...
21 )
22 }
23 \arguments{
24 \item{data}{a \code{data.table}, \code{data.frame} or \code{matrix}}
25
26 \item{colHeaders}{a vector of column names. If missing \code{colnames}
27 will be used. Setting to \code{NULL} will omit.}
28
29 \item{rowHeaders}{a vector of row names. If missing \code{rownames}
30 will be used. Setting to \code{NULL} will omit.}
31
32 \item{comments}{matrix or data.frame of comments; NA values are ignored}
33
34 \item{useTypes}{logical specifying whether column classes should be mapped to
35 equivalent Javascript types. Note that
36 Handsontable does not support column add/remove when column types
37 are defined (i.e. useTypes == TRUE in rhandsontable).}
38
39 \item{readOnly}{logical specifying whether the table is editable}
40
41 \item{selectCallback}{logical enabling the afterSelect event to return data.
42 This can be used with shiny to tie updates to a selected table cell.}
43
44 \item{width}{numeric table width}
45
46 \item{height}{numeric table height}
47
48 \item{digits}{numeric passed to \code{jsonlite::toJSON}}
49
50 \item{debug}{numeric Javascript log level}
51
52 \item{search}{logical specifying if the data can be searched (see
53 \url{https://jrowen.github.io/rhandsontable/#Customizing}
54 and Shiny example in inst/examples/rhandsontable_search)}
55
56 \item{...}{passed to \code{hot_table} and to the \code{params} property of the widget}
57 }
58 \description{
59 Create a \href{https://handsontable.com/}{Handsontable.js} widget.
60 }
61 \details{
62 For full documentation on the package, visit \url{https://jrowen.github.io/rhandsontable/}
63 }
64 \examples{
65 library(rhandsontable)
66 DF = data.frame(val = 1:10, bool = TRUE, big = LETTERS[1:10],
67 small = letters[1:10],
68 dt = seq(from = Sys.Date(), by = "days", length.out = 10),
69 stringsAsFactors = FALSE)
70
71 rhandsontable(DF, rowHeaders = NULL)
72 }
73 \seealso{
74 \code{\link{hot_table}}, \code{\link{hot_cols}}, \code{\link{hot_rows}}, \code{\link{hot_cell}}
75 }