selectInput | R Documentation |
Create a select input. Select elements typically appear as a simple menu of choices and may have one selected choice. A group select input is a select input with one or two additional components. These addon components are used to change the reactivity or value of the input, see Details for more information.
selectInput(
id,
choices = NULL,
values = choices,
selected = values[[1]],
...,
placeholder = NULL
)
updateSelectInput(
id,
choices = NULL,
values = choices,
selected = choices[[1]],
enable = NULL,
disable = NULL,
valid = NULL,
invalid = NULL,
session = getDefaultReactiveDomain()
)
groupSelectInput(
id,
choices,
values = choices,
selected = values[[1]],
...,
left = NULL,
right = NULL
)
updateGroupSelectInput(
id,
choices = NULL,
values = choices,
selected = NULL,
enable = NULL,
disable = NULL,
valid = NULL,
invalid = NULL,
session = getDefaultReactiveDomain()
)
choices |
A character vector specifying the input's choices. |
values |
A character vector specifying the values of the input's
choices, defaults to |
selected |
One of |
placeholder |
A character string specifying the placeholder text of
the select input, defaults to |
left , right |
A character vector specifying static addons or
If
The button does not change the value of the group input. However, the input no longer triggers event when the text box is updated. Instead the value is updated when a button is clicked. Static addons are still applied to the group input value.
The value of the group input does chance depending on the clicked dropdown menu item. The value of the input group is the concatenation of the dropdown input value, the value of the text input, and any static addons. |
Other inputs:
checkbarInput()
,
chipInput()
,
fileInput()
,
formInput()
,
input_button()
,
input_checkbox()
,
listGroupInput()
,
menuInput()
,
radioInput()
,
radiobarInput()
,
rangeInput()
,
textInput()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.