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. Ifauto
, changesto
default
will updatevalue
. Otherwise, changes tovalue
will setauto
to False.)
default
(string: plugin-determined default label that will be synced tovalue
if/when
auto
is set to True)
auto
(bool: whether to syncdefault
tovalue
)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>