API Docs for: trial
Show:

nx.data.ObservableDictionary Class

Module: nx.data

Constructor

nx.data.ObservableDictionary

(
  • dict
)

Parameters:

Methods

clear

()

Inherited from nx.data.Dictionary

contains

(
  • key
)
Boolean

Inherited from nx.data.Dictionary:

Parameters:

Returns:

each

(
  • callback
  • [context]
)

Inherited from nx.Iterable

Parameters:

getItem

(
  • key
)

Inherited from nx.data.Dictionary:

Parameters:

Returns:

:

monitor

(
  • handler
)

Apply a diff watcher, which handles each key-item-pair in the collection, to the dictionary.

Parameters:

  • handler Object

    lambda(key, item) returning a rollback method

Returns:

unwatcher A Object with unwatch method.

removeItem

(
  • key
)

Inherited from nx.data.Dictionary

Parameters:

setItem

(
  • key
  • value
)

Inherited from nx.data.Dictionary

Parameters:

setItems

(
  • dict
)

Inherited from nx.data.Dictionary:

Parameters:

toArray

() Array

Inherited from nx.Iterable

Returns:

toObject

() Object

Inherited from nx.data.Dictionary:

Returns:

Properties

count

Number

Inherited from nx.Iterable

keys

Iterable

Inherited from nx.data.Dictionary:

values

Iterable

Inherited from nx.data.Dictionary: