The type of Variable#value.
Private
_valueThe current value, for internal use.
Private
callbacksThe function callbacks called when the value is changed
The current value.
If setting, Variable#setValue is called with no group.
The current value.
When the value is set via this setter, the class implementing this
interface should notify the observable with no group (undefined
). Note
that this is just a suggestion, not a strict requirement.
Private
doUnregister a previously registered callback from this observable.
Register a callback to this observable. When the value is changed, the callback will be called.
If true, the callback will be called once immediately after it's registered. False by default
Optional
group: unknownThe group to use when calling immediately. Only used if callNow is true, and is undefined
by default
An aggregate helper class for widgets that contain a variable with a specified type which is intended to be controlled by the user.
Useful for implementing widgets such as sliders, checkboxes, text input, etc...