An Observable that fires whenever the value of a single global has changed.
The value emitted contains the old state, new state, and the type of change that occurred.
This fires asynchronously, within the same VM turn as a global change.
An Observable that fires once the globals become dirty. It will not fire
again until setClean()
is called.
Add a new global variable to the GlobalsService.
Change the type annotation of a global variable. If the types are incompatible, the value of the global will be cleared and set to null.
Clear all globals and reset state.
This is called whenever the model providing global definitions has changed.
Return the current value of a single Global.
Returns the type annotation of a single Global
Test if the globals service has a particular global.
Removes a global from the GlobalsService
Change the global name.
Set the value of a global, triggering update notifications in the same VM turn. If the new value does not strictly equal the old value, the change will not be committed and no event will be fired.
Generated using TypeDoc
The GlobalsService tracks changes in dashboard-level global variables. This class exposes a hook for listening to changes in Globals, getters and setters for individual globals, and facilities for evaluating binding expressions.
Binding Expressions are short snippets of kernel code, that allows Globals to be referenced directly. When these globals are referenced, consumers can re-run those expressions in response to changes in global values.