dropdown_box_ui: A plain single dropdown box.

View source: R/dropdown-box.R

dropdown_box_uiR Documentation

A plain single dropdown box.

Description

The UI component of the Shiny module for creating a plain single dropdown box.

Usage

dropdown_box_ui(id, label = NULL, choices)

Arguments

id

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

label

String. Display label/title for the dropdown box, or NULL (default) for no label.

choices

Character vector. List of values listed under the dropdown box for user to select. If elements of the list are named then that name rather than the value is displayed. The values should be strings; other types (such as logicals and numbers) will be coerced to strings.

Value

Must use it together with its counterpart server.

See Also

dropdown_box_server for the server mk_dropdown_box for how to make a plain dropdown box.

Examples

inst/examples/ex-dropdown-box.R

cabaceo/shinymod documentation built on Sept. 8, 2023, 12:23 p.m.