menuInput | R Documentation |
A toggleable dropdown menu input. Menu inputs may be used as standalone
reactive inputs or within a navInput()
. For building custom, more complex
dropdown elements please see dropdown()
.
menuInput(
id,
label,
choices = NULL,
values = choices,
selected = NULL,
...,
direction = "down",
align = "left"
)
updateMenuInput(
id,
label = NULL,
choices = NULL,
values = choices,
selected = NULL,
enable = NULL,
disable = NULL,
session = getDefaultReactiveDomain()
)
label |
A character string or tag element specifying the label of the menu's toggle button. |
choices |
A character vector specifying the choice text of the menu's items. |
values |
A character vector specifying the values of the menu's items,
defaults to |
direction |
One of |
align |
One or |
Other inputs:
checkbarInput()
,
chipInput()
,
fileInput()
,
formInput()
,
input_button()
,
input_checkbox()
,
listGroupInput()
,
radioInput()
,
radiobarInput()
,
rangeInput()
,
selectInput()
,
textInput()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.