View source: R/mk-dropdown-box.R
mk_dropdown_box | R Documentation |
Create a plain dropdown box where only one value can be selected.
mk_dropdown_box(id, label = NULL, choices)
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. |
A list of HTML elements that can be added to a UI definition.
dropdown_box_ui
for an example of how to use it.
inst/examples/ex-dropdown-box.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.