SubsetSelectMixin#
- class jdaviz.core.template_mixin.SubsetSelectMixin(**kwargs: Any)[source]#
Bases:
VuetifyTemplate
,HubListener
Applies the SubsetSelect component as a mixin in the base plugin. This automatically adds traitlets as well as new properties to the plugin with minimal extra code. For multiple instances or custom traitlet names/defaults, use the component instead.
To use in a plugin:
add
SubsetSelectMixin
as a mixin to the classuse the traitlets available from the plugin or properties/methods available from
plugin.subset
.
Example template (label and hint are optional):
<plugin-subset-select :items="subset_items" :selected.sync="subset_selected" :show_if_single_entry="true" label="Subset" hint="Select subset." />
Public constructor
Attributes Summary
An instance of a Python list.
A trait which allows any value.
Attributes Documentation
- subset_items#
An instance of a Python list.
- subset_selected#
A trait which allows any value.