View source: R/x-spreadsheet.R
spreadsheet | R Documentation |
Initialises the x-spreadsheet htmlwidget, allows to create one or more sheets and pass options.
spreadsheet(data, options = NULL, elementId = NULL)
data |
The data to render inside the spreadsheet, the following options are valid:
|
options |
A list containing table options/settings, set at table initialisation. The list should match the JSON structure below, e.g.: list( "mode" = "edit", showToolbar = TRUE, ...), JSON: mode: 'edit', // edit | read showToolbar: true, showGrid: true, showContextmenu: true, view: height: () => document.documentElement.clientHeight, width: () => document.documentElement.clientWidth, , row: len: 100, height: 25, , col: len: 26, width: 100, indexWidth: 60, minWidth: 60, , style: bgcolor: '#ffffff', align: 'left', valign: 'middle', textwrap: false, strike: false, underline: false, color: '#0a0a0a', font: name: 'Helvetica', size: 10, bold: false, italic: false, , , |
elementId |
htmlwidget elementid |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.