dropdownButton: Dropdown Button

dropdownButtonR Documentation

Description

Dropdown buttons for shiny::actionLink().

Usage

dropdownButton(label, ..., id = NULL, class = "")

Arguments

label

Label of the dropdown.

...

shiny::actionLink() to place within the dropdown.

id

ID of parent dropdown.

class

Additional class for dropdown button.

Examples

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)


JohnCoene/bsutils documentation built on June 15, 2024, 3:21 a.m.