| govReactable-shiny | R Documentation |
Shiny bindings for govReactable Output and render functions for using govReactable within shiny apps
govReactableOutput(
output_table_name,
caption,
caption_size = "l",
heading_level = 2L
)
renderGovReactable(expr, env = parent.frame(), quoted = FALSE)
govReactableOutput() returns a reactable output element
that can be included in a Shiny UI
renderGovReactable() returns a reactable render function that
can be assigned to a Shiny output slot
Other Govstyle tables tabs and accordions:
accordion(),
govReactable(),
govTable(),
govTabs()
ui <- shinyGovstyle::gov_page(
govReactableOutput(
"table",
caption = "Example table"
)
)
server <- function(input, output, session) {
output$table <- renderGovReactable({
govReactable(iris)
})
}
if (interactive()) shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.