tableOutput

0th

Percentile

Create a table output element

Render a renderTable or renderDataTable within an application page. renderTable uses a standard HTML table, while renderDataTable uses the DataTables Javascript library to create an interactive table with more features.

Usage
tableOutput(outputId)
dataTableOutput(outputId)
Arguments
outputId
output variable to read the table from
Value

A table output element that can be included in a panel

See Also

renderTable, renderDataTable.

Aliases
  • dataTableOutput
  • tableOutput
Examples
## Only run this example in interactive R sessions
if (interactive()) {
  # table example
  shinyApp(
    ui = fluidPage(
      fluidRow(
        column(12,
          tableOutput('table')
        )
      )
    ),
    server = function(input, output) {
      output$table <- renderTable(iris)
    }
  )


  # DataTables example
  shinyApp(
    ui = fluidPage(
      fluidRow(
        column(12,
          dataTableOutput('table')
        )
      )
    ),
    server = function(input, output) {
      output$table <- renderDataTable(iris)
    }
  )
}
Documentation reproduced from package shiny, version 0.14.2, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.