Helper to create data grids
Arguments
- 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
Examples
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)
})
}
)
}