emitChange()
Emits a change event.
emitChange(name?: string, data?: Record<string, any>): this;
Notes
- A change event can be used to indicate that the state of this object has changed in some way. The event emitted is a regular instance of ObservableEvent, but includes a data object with a
changeproperty that references the object itself. - Change events force an update on bindings for properties of the changed object.
Parameters
- name — The name of the event; defaults to “Change”
- data — Additional data to be set on ObservableEvent.data; will be combined with the
changeproperty
Related
class ObservableObject
The base class of all observable objects, which can be placed into a tree structure to enable event handling and data binding.
