Skip to main content

@microsoft/fast-element > PropertyChangeNotifier

PropertyChangeNotifier class

An implementation of Notifier that allows subscribers to be notified of individual property changes on an object.

Signature:
export declare class PropertyChangeNotifier implements Notifier 

Constructors

ConstructorModifiersDescription
(constructor)(source)Creates an instance of PropertyChangeNotifier for the specified source.

Properties

PropertyModifiersTypeDescription
sourceanyThe source that property changes are being notified for.

Methods

MethodModifiersDescription
notify(propertyName)Notifies all subscribers, based on the specified property.
subscribe(subscriber, propertyToWatch)Subscribes to notification of changes in an object's state.
unsubscribe(subscriber, propertyToUnwatch)Unsubscribes from notification of changes in an object's state.