ViewerSelect
- class jdaviz.core.template_mixin.ViewerSelect(**kwargs: Any)[source] [edit on github]
Bases:
SelectPluginComponent
Plugin select for viewers, with support for single or multi-selection.
Useful API methods/attributes:
selected
select_all()
(only ifis_multiselect
)select_none()
(only ifis_multiselect
)
This extends BasePluginComponent for common functionality for a select/dropdown component. The subclasses MUST have an
items
traitlet as a list of dictionaries, with ‘label’ as the selection entry (and any other optional entries for styling, etc) and aselected
string traitlet. The subclasses should also overrideselected_obj
and may choose to override_selected_changed
(likely with a super call to keep the base logic).Attributes Summary
Attributes Documentation
- ids
- references
- selected_id
- selected_obj
- selected_reference