ViewerSelectMixin
- class jdaviz.core.template_mixin.ViewerSelectMixin(**kwargs)[source] [edit on github]
Bases:
ipyvuetify.VuetifyTemplate.VuetifyTemplate,glue.core.hub.HubListenerApplies the ViewerSelect 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
ViewerSelectMixinas a mixin to the classuse the traitlets available from the plugin or properties/methods available from
plugin.viewer.
Example template (label and hint are optional):
<plugin-viewer-select :items="viewer_items" :selected.sync="viewer_selected" label="Viewer" hint="Select viewer." />
Public constructor
Attributes Summary
An instance of a Python list.
A trait for unicode strings.
Attributes Documentation
- viewer_items
An instance of a Python list.
- viewer_selected
A trait for unicode strings.