Update the available choices and/or current selection of an existing
glassMultiSelect() input.
Usage
updateGlassMultiSelect(
session,
inputId,
choices = NULL,
selected = NULL,
check_style = NULL
)Arguments
- session
Shiny session.
- inputId
Input id of the widget.
- choices
New choices, or
NULLto keep current choices.- selected
New selected values, or
NULLto keep 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.
Details
This function now follows Shiny-style update semantics more closely:
choices = NULLleaves choices unchangedselected = NULLleaves selection unchangedselected = 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.