Description Usage Arguments Value Examples
View source: R/output-datatable.R
Render a renderDataTable
within an application page.
renderDataTable
uses the DataTables Javascript library to create an
interactive table with more features.
1 | dataTableOutput(outputId)
|
outputId |
output variable to read the table from |
A table output element that can be included in a panel
1 2 3 4 5 6 7 8 9 10 11 12 | ## Only run this example in interactive R sessions
if (interactive()) {
library(shiny)
shinyApp(
ui = bootstrapPage(
dataTableOutput('table')
),
server = function(input, output) {
output$table <- renderDataTable(iris)
}
)
}
|
You probably do not want to attach this package (with library() or require()). Instead, you should use shinybootstrap2::withBootstrap2(). You can hide this message with suppressPackageStartupMessages().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.