Helper functions for using DT in Shiny
These two functions are like most fooOutput()
and renderFoo()
functions in the shiny package. The former is used to create a
container for table, and the latter is used in the server logic to render the
table.
dataTableOutput(outputId, width = "100%", height = "auto") DTOutput(outputId, width = "100%", height = "auto") renderDataTable( expr, server = TRUE, env = parent.frame(), quoted = FALSE, funcFilter = dataTablesFilter, ... ) renderDT( expr, server = TRUE, env = parent.frame(), quoted = FALSE, funcFilter = dataTablesFilter, ... )
outputId |
output variable to read the table from |
width |
the width of the table container |
height |
the height of the table container |
expr |
an expression to create a table widget (normally via
|
server |
whether to use server-side processing. If |
env |
The environment in which to evaluate |
quoted |
Is |
funcFilter |
(for expert use only) passed to the |
... |
ignored when |
if (interactive()) { library(shiny) library(DT) shinyApp( ui = fluidPage(fluidRow(column(12, DTOutput('tbl')))), server = function(input, output) { output$tbl = renderDT( iris, options = list(lengthChange = FALSE) ) } ) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.