renderTextTableInput: Table output containing editable data

Usage Arguments Details References See Also Examples

View source: R/table_renderer-textInput.R

Usage

1
2
3
renderTextTableInput(df)

renderTextTableInput(df, tableId = NA, tableClasses = "table table-bordered")

Arguments

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 textTableInput.

tableClasses

character vector specifying the HTML classes to apply to the table generated using df. table denoting the id of the corresponding HTML table element generated in the UI by textTableInput.

Details

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.

References

W3Schools Bootstrap tables resource.

See Also

textTableInput

Examples

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"))

drbulu/shinyinputtables documentation built on May 5, 2019, 1:37 p.m.