observeProperty
Starts observing one or more properties.
protected
protected observeProperty(...properties: Array<keyof T>): this
Notes
- Property changes are triggered when the property is assigned a different value, or when a referenced managed object emits a ManagedChangeEvent.
- Changes are handled by Observer.handlePropertyChange() first, which may be overridden. The base implementation of that method looks for a method called
on...Change
(e.g.onFooChange
for thefoo
property) and calls it with the property value and possibly a change event as arguments.
Related
- class ObserverThe base class for an observer that watches a particular ManagedObject.
- observePropertyAsync(…properties) protectedStarts observing one or more properties, asynchronously.
- handlePropertyChange(property, value, event?) protectedA method that’s called when an observed property has been changed on the observed object, may be overridden.