SpectralSubsetSelectMixin#
- class jdaviz.core.template_mixin.SpectralSubsetSelectMixin(**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
SpectralSubsetSelectMixin
as a mixin to the classuse the traitlets available from the plugin or properties/methods available from
plugin.spectral_subset
.
Example template (label and hint are optional):
<plugin-subset-select :items="spectral_subset_items" :selected.sync="spectral_subset_selected" :show_if_single_entry="true" label="Spectral region" hint="Select spectral region." />
Public constructor
Attributes Summary
An instance of a Python list.
A trait which allows any value.
A boolean (True, False) trait.
Attributes Documentation
- spectral_subset_items#
An instance of a Python list.
- spectral_subset_selected#
A trait which allows any value.
- spectral_subset_selected_has_subregions#
A boolean (True, False) trait.