Path: blob/main/examples/reference/widgets/MultiSelect.ipynb
3233 views
The MultiSelect widget allows selecting multiple values from a list of options. It falls into the broad category of multi-value, option-selection widgets that provide a compatible API and include the CrossSelector, CheckBoxGroup and CheckButtonGroup widgets.
Discover more on using widgets to add interactivity to your applications in the how-to guides on interactivity. Alternatively, learn how to set up callbacks and (JS-)links between parameters or how to use them as part of declarative UIs with Param.
Parameters:
For details on other options for customizing the component see the layout and styling how-to guides.
Core
options(list or dict): List or dictionary of optionsvalue(list): Currently selected option values
Display
disabled(boolean): Whether the widget is editablename(str): The title of the widget
Events
on_double_click(Callable[DoubleClickEvent, None]): Allows registering a callback that fires when an option is double clicked. The callback is given aDoubleClickEventcontaining the clickedoption.
MultiSelect.value returns a list of the currently selected options:
Controls
The MultiSelect widget exposes a number of options which can be changed from both Python and Javascript. Try out the effect of these parameters interactively: