Class “ChangeListeners”
Object > Observable > Listeners > ChangeListeners
Represents a collection of listeners for a property change event. Differs from its superclass in the constructor signature and the additional values
property.
Type: | ChangeListeners<Target, Property> |
Generics: | Target: object Property: keyof Target |
Constructor: | public |
Singleton: | No |
Namespace: | tabris |
Direct subclasses: | None |
JSX Support: | No |
Constructor
new ChangeListeners(target, property)
Parameter | Type | Description |
---|---|---|
target | Target |
|
property | Property |
Properties
values
An observable instance that directly provides the changed values instead of the event object. Also, the current value will be emitted immediately upon subscription. Completes when the target is disposed.
Type: | Observable |
Settable: | No |
This property can only be set via constructor. Once set, it cannot change anymore.
Related Types
PropertyChangedEvent<TargetType, ValueType>
- JavaScript Type:
tabris.EventObject
- TypeScript Type:
PropertyChangedEvent
interface PropertyChangedEvent<TargetType, ValueType> extends EventObject<TargetType>{
readonly value: ValueType
}
An event object fired when an object property changes. It is an instance of EventObject
that provides an additional property value
containing the new value.
The TypeScript interface is generic with two type parameters, the first is the type of the target and the second is the type of the value that changed.