dropdownButton: Dropdown Button

dropdownButtonR Documentation

Dropdown Button

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)


mhanf/bsutilsmodif documentation built on May 15, 2022, 12:09 a.m.