AutoLabel

class jdaviz.core.template_mixin.AutoLabel(plugin, value, default, auto, invalid_msg)[source] [edit on github]

Bases: BasePluginComponent

Traitlets (in the object, custom traitlets in the plugin):

  • value (string: user-provided label for the results data-entry. If auto, changes

    to default will update value. Otherwise, changes to value will set auto to False.)

  • default (string: plugin-determined default label that will be synced to value

    if/when auto is set to True)

  • auto (bool: whether to sync default to value)

  • invalid_msg (string: validation string for the current value of value.)

Example template:

<plugin-auto-label
  :value.sync="value"
  :default="comp_label_default"
  :auto.sync="comp_label_auto"
  :invalid_msg="invalid_msg"
  hint="Label hint."
></plugin-auto-label>