dataTableOutput: Create a table output element

Description Usage Arguments Value Examples

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

rstudio/shinybootstrap2 documentation built on May 28, 2019, 7:54 a.m.