Skip to content

Commit

Permalink
Address changes to Handsontable
Browse files Browse the repository at this point in the history
Support licenseKey for new license model of Handsontable
Address height and width issue with new Handsontable

Handsontable version 7.0.0 changes the license model.
https://github.com/handsontable/handsontable/releases/tag/7.0.0
  • Loading branch information
trshafer committed Jun 24, 2019
1 parent 730a156 commit 5a354fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions R/rhandsontable.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#' will be used. Setting to \code{NULL} will omit.
#' @param rowHeaders a vector of row names. If missing \code{rownames}
#' will be used. Setting to \code{NULL} will omit.
#' @param licenseKey the license key to pass to Handsontable
#' @param comments matrix or data.frame of comments; NA values are ignored
#' @param useTypes logical specifying whether column classes should be mapped to
#' equivalent Javascript types. Note that
Expand All @@ -34,10 +35,10 @@
#' rhandsontable(DF, rowHeaders = NULL)
#' @seealso \code{\link{hot_table}}, \code{\link{hot_cols}}, \code{\link{hot_rows}}, \code{\link{hot_cell}}
#' @export
rhandsontable <- function(data, colHeaders, rowHeaders, comments = NULL,
rhandsontable <- function(data, colHeaders, rowHeaders, licenseKey = NULL, comments = NULL,
useTypes = TRUE, readOnly = NULL,
selectCallback = FALSE,
width = NULL, height = NULL, digits = 4,
width = "auto", height = "auto", digits = 4,
debug = NULL, search = FALSE, ...) {
rColHeaders = colnames(data)
if (.row_names_info(data) > 0L)
Expand Down Expand Up @@ -128,6 +129,7 @@ rhandsontable <- function(data, colHeaders, rowHeaders, comments = NULL,
columns = cols,
width = width,
height = height,
licenseKey = licenseKey,
debug = ifelse(is.null(debug) || is.na(debug) || !is.numeric(debug), 0, debug),
search = search
)
Expand Down
6 changes: 4 additions & 2 deletions man/rhandsontable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a354fb

Please sign in to comment.