Type: | Package |
Title: | A Wrapper of the 'JavaScript' Library 'agGrid' |
Version: | 0.2.0 |
Maintainer: | Srikkanth M <srikkanth18@gmail.com> |
Description: | Data objects in 'R' can be rendered as 'HTML' tables using the 'JavaScript' library 'ag-grid' (typically via 'R Markdown' or 'Shiny'). The 'ag-grid' library has been included in this 'R' package. The package name 'RagGrid' is an abbreviation of 'R agGrid'. |
URL: | https://github.com/no-types/RagGrid/ |
BugReports: | https://github.com/no-types/RagGrid/issues |
License: | MIT + file LICENSE |
Imports: | htmltools (≥ 0.3.6), htmlwidgets (≥ 1.0), crosstalk, knitr |
Suggests: | jsonlite (≥ 0.9.16), rmarkdown, shiny (≥ 0.12.1) |
RoxygenNote: | 6.0.1 |
NeedsCompilation: | no |
Packaged: | 2018-08-12 09:12:49 UTC; srikkanth |
Author: | Srikkanth M [aut, cre], Praveen N [aut, ctb] |
Repository: | CRAN |
Date/Publication: | 2018-08-12 09:30:03 UTC |
Shiny bindings for RagGrid
Description
Output and render functions for using RagGrid within Shiny applications and interactive Rmd documents.
Usage
RagGridOutput(outputId, width = "100%", height = "400px")
renderRagGrid(expr, env = parent.frame(), quoted = FALSE)
Arguments
outputId |
output variable to read from |
width , height |
Must be a valid CSS unit (like |
expr |
An expression that generates a RagGrid |
env |
The environment in which to evaluate |
quoted |
Is |
Create a HTML widget using the ag-grid library
Description
This function creates a HTML widget to display matrix or a dataframe using ag-grid.
Usage
aggrid(data, options = list(), colOpts = list(),
formattingOptions = list(), sparkLineOptions = list(),
theme = "ag-theme-balham", filterOnSelect = TRUE, licenseKey = NULL,
width = NULL, height = NULL, elementId = NULL)
Arguments
data |
a dataobject (either a matrix or a dataframe) |
options |
a list of ag-grid grid options (see https://www.ag-grid.com/javascript-grid-properties/); |
colOpts |
a list of ag-grid column options (see https://www.ag-grid.com/javascript-grid-column-definitions/); |
formattingOptions |
a list of ag-grid column formatting options (see
http://numeraljs.com/#format) Also see |
sparkLineOptions |
options for rendering sparkline in the table |
theme |
a theme class name that need to be applied for grid (see https://www.ag-grid.com/javascript-grid-styling//); |
filterOnSelect |
specify whether filter is need to be perfromed on selecting a row item |
licenseKey |
if you wish to use the enterprise version of ag-grid |
width , height |
Width/Height in pixels (optional, defaults to automatic sizing) |
elementId |
An id for the widget (a random string by default). |
Examples
aggrid(iris)
Dependency Path
Description
Dependency Path
Usage
depPath(...)
Arguments
... |
plugin |
Format table columns
Description
Format table columns
Usage
formatColumns(table, columns, format)
Arguments
table |
a table object created from |
columns |
the indices of the columns |
format |
format based on numeral.js (see http://numeraljs.com/#format); |
Get dependencies
Description
Get dependencies
Usage
getDeps(plugin, version)
Arguments
plugin |
plugin |
version |
version |