Skip to content

ObservableMap

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / ObservableMap<TKey, TItem> class

Represents an observable map based on the Map interface.

Extends ReadOnlyObservableMap<TKey, TItem>.
Implements IObservableMap<TKey, TItem>.

class ObservableMap<TKey, TItem>
    extends ReadOnlyObservableMap<TKey, TItem>
    implements IObservableMap<TKey, TItem>

Source reference: src/collections/observableMap/ObservableMap.ts:9.

Generic Parameters

  • TKey - The type of keys the map contains.

  • TItem - The type of items the map contains.

Constructors

Properties

  • inherited readonly mapChanged - An event that is raised when the map changed by adding or removing entries.
  • inherited propertiesChanged - An event that is raised when one or more properties may have changed.
  • inherited size - Gets the number of entries in the map.

Methods

  • override clear - Empties the map of all entries.
  • override delete - Removes the entry having the given given key from the map.
  • override set - Sets the provided item at the given key. If there is an entry already exists with the given key, then it is replaced.

Inheritance Hierarchy

Clone this wiki locally