Description Usage Arguments Value Examples
View source: R/data_table_preview.R
A data table preview widget
1 | dataTablePreviewWidget(id, enableOptionToShowAllRows = TRUE)
|
id |
The same ID as used in the matching call to previewDataTable |
enableOptionToShowAllRows |
Whether or not to show a checkbox that toggles all rows all only the first few rows |
The widget
1 2 3 4 5 | # In Shiny UI logic, add this widget
dataTablePreviewWidget("previewTable")
# Then in your Shiny server logic, add following statements
dataTable <- reactive({ # generate your data frame here })
previewDataTable("previewTable", dataTable)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.