input_menu | R Documentation |
A dropdown menu.
input_menu(
id,
label,
choices,
...,
values = choices,
disable = NULL,
direction = c("down", "up", "left", "right"),
align = c("left", "right"),
close = c("auto", "inside", "outside", "manual")
)
update_menu_input(
id,
label = NULL,
choices = NULL,
values = choices,
select = NULL,
disable = NULL,
session = get_current_session()
)
id |
A character string. The id of the reactive input. |
label |
A character string or tag element specifying the label of the menu's toggle button. |
choices |
A character vector or list. The labels for the input choices. |
... |
Optional named arguments specifying HTML attributes for the input element. |
values |
A character vector. The values for the input, defaults to
|
disable |
A character vector. The values disabled by default. |
direction |
A character string. |
align |
<responsive> A character vector. |
close |
A character string. |
select |
A character vector. The values selected by default, one or more
of |
session |
A shiny session object. |
Other inputs:
fileInput()
,
input_button()
,
input_checkbox()
,
input_checkbox_group()
,
input_chip()
,
input_form()
,
input_list_group()
,
input_radio_group()
,
radiobarInput()
,
rangeInput()
,
selectInput()
,
textInput()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.