Learn R Programming

shinyMobile (version 0.7.0)

f7Table: Table

Description

Create shinyMobile table.

Usage

f7Table(data, colnames = NULL, card = FALSE)

Arguments

data

A data.frame.

colnames

Column names to use, if NULL uses data column names.

card

Whether to use as card.

Examples

Run this code
# NOT RUN {
if(interactive()){
 library(shiny)
 library(shinyMobile)
 shiny::shinyApp(
  ui = f7Page(
    title = "My app",
    f7SingleLayout(
      uiOutput("table")
    )
  ),
  server = function(input, output) {
    output$table <- renderUI({
      f7Table(cars)
    })
  }
 )
}

# }

Run the code above in your browser using DataLab