regressoR (version 1.1.8)

render_table_data: render_table_data

Description

create a table for the shiny application and render it.

Usage

render_table_data(data, editable = TRUE, dom = "frtip",
  pageLength = 10, scrollY = "27vh", server = T)

Arguments

data

a data.frame to create a the table.

editable

whether to make an editable table. The default value is TRUE.

dom

define the table control elements to appear on the page and in what order.

pageLength

the number of rows to show. The default value is 10.

scrollY

the heigth of the table.

server

whether to use server-side processing. If TRUE, then the data is kept on the server and the browser requests a page at a time; if FALSE, then the entire data frame is sent to the browser at once.

Value

a shiny.render.function

See Also

datatable, renderDT

Examples

Run this code
# NOT RUN {
if(interactive()) {
   library(shiny)
   library(DT)
   shinyApp(
      ui = fluidPage(fluidRow(column(12, DTOutput('tbl')))),
      server = function(input, output) {
         output$tbl = render_table_data(iris)
      }
   )
}

# }

Run the code above in your browser using DataLab