QDataGrid | R Documentation |
Helper to create data grids
QDataGrid(data, height = "400px", columns = NULL, minColWidth = 100, ...)
data |
data_frame to display |
height |
height of the grid |
columns |
configuration for individual columns. See the mui documentation for more details here |
minColWidth |
minimum width of columns |
... |
other props to pass to the react component. See mui documentation |
library(shiny.mui)
library(shiny)
library(shiny.quartz)
data(mtcars)
if (interactive()) {
shinyApp(
ui = div(
reactOutput("data")
),
server = function(input, output) {
output$data <- renderReact({
QDataGrid(tidyiddr::influenza_burden(), minColWidth = 100)
})
}
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.