Data Viewer Module UI
Usage
data_viewer_ui(
id,
standalone = TRUE,
table_title = NULL,
sidebar_title = NULL,
table_controls_position = c("top", "bottom")
)Arguments
- id
Module id.
- standalone
Whether to render with the built-in table card. Set to
FALSEwhen embedding inside anotherbslib::card().- table_title
Optional title for the table region.
Optional title for the variable summary sidebar.
- table_controls_position
Where table pagination controls should appear. One of
"top"or"bottom".
Examples
ui <- bslib::page_fillable(
theme = bslib::bs_theme(version = 5),
data_viewer_ui("viewer")
)
server <- function(input, output, session) {
data_viewer_server(
"viewer",
data = shiny::reactive(iris)
)
}
if (interactive()) {
shiny::shinyApp(ui, server)
}
