Create a table output element

Share:

Description

Render a renderDataTable within an application page. renderDataTable uses the DataTables Javascript library to create an interactive table with more features.

Usage

1
dataTableOutput(outputId)

Arguments

outputId

output variable to read the table from

Value

A table output element that can be included in a panel

Examples

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.