Class Observable

Hierarchy

Index

Properties

Methods

Properties

public addObserver: ModifyObserver

Methods

public beginPropertyChanges(): Observable

Returns

Observable

public cacheFor(keyName: string): any

Parameters

  • keyName: string

Returns

any

public decrementProperty(keyName: string, decrement?: number): number

Parameters

  • keyName: string
  • decrement?: number optional

Returns

number

public endPropertyChanges(): Observable

Returns

Observable

public get(keyName: string): any

Parameters

  • keyName: string

Returns

any

public getProperties(string?: Array<any>): {}

Parameters

  • string?: Array<any> optional

Returns

{}

public getProperties(keys: Array<string>): {}

Parameters

  • keys: Array<string>

Returns

{}

public getWithDefault(keyName: string, defaultValue: any): any

Parameters

  • keyName: string
  • defaultValue: any

Returns

any

public hasObserverFor(key: string): boolean

Parameters

  • key: string

Returns

boolean

public incrementProperty(keyName: string, increment?: number): number

Parameters

  • keyName: string
  • increment?: number optional

Returns

number

public notifyPropertyChange(keyName: string): Observable

Parameters

  • keyName: string

Returns

Observable

public propertyDidChange(keyName: string): Observable

Parameters

  • keyName: string

Returns

Observable

public propertyWillChange(keyName: string): Observable

Parameters

  • keyName: string

Returns

Observable

public removeObserver(key: string, target: {}, method: string): Observable

Parameters

  • key: string
  • target: {}
  • method: string

Returns

Observable

public removeObserver(key: string, target: {}, method: Function): Observable

Parameters

  • key: string
  • target: {}
  • method: Function

Returns

Observable

public set(keyName: string, value: any): Observable

Parameters

  • keyName: string
  • value: any

Returns

Observable

public setProperties(hash: {}): Observable

Parameters

  • hash: {}

Returns

Observable

public toggleProperty(keyName: string): any

Parameters

  • keyName: string

Returns

any