Usage Arguments Details References See Also Examples
View source: R/table_renderer-textInput.R
1 2 3 | renderTextTableInput(df)
renderTextTableInput(df, tableId = NA, tableClasses = "table table-bordered")
|
df |
data frame input to be rendered as an editable HTML table (text). |
tableId |
single length character vector denoting the id of the corresponding
HTML table element generated in the UI by |
tableClasses |
character vector specifying the HTML classes to apply to the
table generated using |
Note: Section documentation in progress. Also need to add example usage.
Shiny UI is based on the Bootstrap
framework. Therefore, To apply default Bootstrap CSS table styling, simply specify the corresponding
HTML class name(s) as elements in tableClasses
for inclusion into the genrated table. Shiny's
Bootstrap CSS rules will then be applied to the table output identified by tableId
. This can
also be used to apply other class-based CSS styling schemes to the table output, such as the custom
bootstrap themes that
can be applied to shiny pages.
W3Schools Bootstrap tables resource.
1 2 3 4 | renderTextTableInput(df = iris, tableId)
renderTextTableInput(df = iris, tableId = "iris_table")
renderTextTableInput(df = mtcars, tableId = "iris_table", tableClasses = c("table", "table-bordered"))
renderTextTableInput(df = DNase, tableId = "iris_table", tableClasses = c("table table-bordered", "example"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.