DatasetMultiSelectMixin#

class jdaviz.core.template_mixin.DatasetMultiSelectMixin(**kwargs: Any)[source]#

Bases: VuetifyTemplate, HubListener

Applies the DatasetSelect component as a mixin in the base plugin with togglable multiselect. 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 DatasetMultiSelectMixin as a mixin to the class

  • use the traitlets available from the plugin or properties/methods available from plugin.dataset.

Example template (label and hint are optional):

<plugin-dataset-select
  :items="dataset_items"
  :selected.sync="dataset_selected"
  :multiselect="multiselect"
  label="Data"
  hint="Select data."
/>

Public constructor

Attributes Summary

dataset_items

An instance of a Python list.

dataset_selected

A trait which allows any value.

multiselect

A boolean (True, False) trait.

Attributes Documentation

dataset_items#

An instance of a Python list.

dataset_selected#

A trait which allows any value.

multiselect#

A boolean (True, False) trait.