dropdownButtonInput: Dropdown button Shiny input widget

Description Usage Arguments Value

View source: R/dropdownButtonInput.R

Description

Dropdown button Shiny input widget

Usage

1
2
dropdownButtonInput(inputId, label, elements, width = NULL, class = NULL,
  icon = NULL, ...)

Arguments

inputId

The input slot that will be used to access the value.

label

The contents of the button or link<e2><80><93>usually a text label, but you could also use any other HTML, like an image.

elements

A list of elements to display in the dropdown menu when the button is clicked. Each element in the list can be one of 3 things: (1) a named value, in which case the name will be displayed and the input bound to value when it is clicked, (2) a shiny.tag object, which is displayed as-is, or (3) NA which inserts a divider.

width

Forced width for the dropdown menu.

class

Additional element classes

icon

An optional shiny::icon to appear on the button.

...

Additional attributes sent to shiny::div

Value

Shiny tag list suitable for use in a Shiny UI.


whitwort/dropdownButtonInput documentation built on May 29, 2019, 6:53 p.m.