Skip to content

Latest commit

 

History

History
132 lines (76 loc) · 2.31 KB

Watchable.md

File metadata and controls

132 lines (76 loc) · 2.31 KB

Class: Watchable

Class that allow watching property changes on inheriting instance

Hierarchy

Table of contents

Methods

Methods

notifyPropertyChanged

notifyPropertyChanged(propertyKey, value): void

Function to call when a property in the element changed to notify listeners

Parameters

Name Type
propertyKey string
value any

Returns

void


subscribeToPropertiesChanges

subscribeToPropertiesChanges(listener): void

Function to subscribe to properties changes of the element

Parameters

Name Type
listener PropertiesListener

Returns

void


unsubscribeFromPropertiesChanges

unsubscribeFromPropertiesChanges(listener): void

function to unsubscribe from properties changes of the element

Parameters

Name Type
listener PropertiesListener

Returns

void


subscribeToPropertyChanged

subscribeToPropertyChanged(property, listener): void

function to subscribe to one property changed

Parameters

Name Type
property string
listener PropertyListener

Returns

void


unsubscribeFromPropertyChanged

unsubscribeFromPropertyChanged(property, listener): void

function to unsubscribe from one property changed

Parameters

Name Type
property string
listener PropertyListener

Returns

void


dispose

dispose(): void

Dispose watchable.

Returns

void

Help

Found a problem, a bug? Or need some help?
Please do not create an issue in Github! Ask us via our Support page : https://support.intuiface.com/