dropdownButton | R Documentation |
Dropdown buttons for shiny::actionLink()
.
dropdownButton(label, ..., id = NULL, class = "")
label |
Label of the dropdown. |
... |
|
id |
ID of parent dropdown. |
class |
Additional class for dropdown button. |
library(shiny) ui <- fluidPage( theme = bslib::bs_theme(version = 5L), dropdownButton( "Buttons", actionLink("first", "First"), actionLink("second", "Second") ) ) server <- \(input, output, session){ } if(interactive()) shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.