The type of value.
The type of a callback function. Should not be passed manually.
Create a new Variable.
The initial value of this variable. Sets _value.
Optional
callback: CA callback for when the variable changes. Equivalent to calling watch after creating the variable, but allows for variables to created inline.
If true, the callback will be called once immediately after it's registered, unless the callback is already registered. Doesn't apply if no callback was passed.
Private
_valueThe current value, for internal use.
Private
callbacksThe function callbacks called when the value is changed
The current value.
If setting, setValue is called.
Protected
doRegister a callback to this variable. When the value is changed, the callback will be called.
If true, the callback will be called once immediately after it's registered, unless the callback is already registered.
Generated using TypeDoc
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...