Update the available choices, current selection, and/or selection-marker
style of an existing glassSelect() input.
Usage
updateGlassSelect(
session,
inputId,
choices = NULL,
selected = NULL,
check_style = NULL,
shape = NULL,
disabled = NULL,
disabled_choices = NULL
)Arguments
- session
Shiny session.
- inputId
Input id of the widget.
- choices
New choices, or
NULLto keep current choices.- selected
New selected value, or
NULLto keep the current selection. Usecharacter(0)to clear.- check_style
Optional new style string. One of
"checkbox","check-only", or"filled". Defaults toNULL, which keeps the current style unchanged.- shape
Optional new corner style. One of
"rounded"or"square". Defaults toNULL, which keeps the current shape unchanged.- disabled
Optional logical.
TRUE/FALSEtoggles the whole-widget disabled state. Defaults toNULL, which leaves it unchanged.- disabled_choices
Optional character vector of choice values to render as disabled. Defaults to
NULL, which leaves disabled choices unchanged.
Details
This function follows Shiny-style update semantics:
choices = NULLleaves choices unchangedselected = NULLleaves selection unchangedselected = character(0)clears the selectioncheck_style = NULLleaves the current style unchanged
When choices is supplied and selected is not, the browser side
keeps the current selection if it is still present in the new choices.
See also
Other glass select widgets:
glassMultiSelect(),
glassMultiSelectServer(),
glassMultiSelectValue(),
glassSelect(),
glassSelectServer(),
glassSelectValue(),
updateGlassMultiSelect()