Learn R Programming

shinybootstrap2 (version 0.2.1)

dataTableOutput: Create a table output element

Description

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

Usage

dataTableOutput(outputId)

Arguments

outputId
output variable to read the table from

Value

A table output element that can be included in a panel

Examples

Run this code
## 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)
    }
  )
}

Run the code above in your browser using DataLab