View source: R/glass_multiselect.R
| updateGlassMultiSelect | R Documentation |
Update the available choices and/or current selection of an existing
glassMultiSelect() input.
updateGlassMultiSelect(
session,
inputId,
choices = NULL,
selected = NULL,
check_style = NULL,
shape = NULL,
disabled = NULL,
disabled_choices = NULL
)
session |
Shiny session. |
inputId |
Input id of the widget. |
choices |
New choices, or |
selected |
New selected values, or |
check_style |
Optional new style string. One of |
shape |
Optional new corner style. One of |
disabled |
Optional logical. |
disabled_choices |
Optional character vector of choice values to render
as disabled. Defaults to |
This function now follows Shiny-style update semantics more closely:
choices = NULL leaves choices unchanged
selected = NULL leaves selection unchanged
selected = character(0) clears the selection
When choices is supplied and selected is not, the browser side
keeps the intersection of the current selection and the new set of choices.
No return value. Called for its side effect of updating the client-side widget.
Other glass select widgets:
glassMultiSelect(),
glassMultiSelectServer(),
glassMultiSelectValue(),
glassSelect(),
glassSelectServer(),
glassSelectValue(),
updateGlassSelect()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.