AutoLabel
- class jdaviz.core.template_mixin.AutoLabel(plugin, value, default, auto, invalid_msg)[source] [edit on github]
Bases:
BasePluginComponentTraitlets (in the object, custom traitlets in the plugin):
value(string: user-provided label for the results data-entry. Ifauto, changesto
defaultwill updatevalue. Otherwise, changes tovaluewill setautoto False.)
default(string: plugin-determined default label that will be synced tovalueif/when
autois set to True)
auto(bool: whether to syncdefaulttovalue)invalid_msg(string: validation string for the current value ofvalue.)
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>