Skip to content

ObservableSet

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions
API / ObservableSet<TItem> class

Represents a read-only observable set based on the Set interface.

Extends ReadOnlyObservableSet<TItem>.
Implements IObservableSet<TItem>.

class ObservableSet<TItem>
    extends ReadOnlyObservableSet<TItem>
    implements IObservableSet<TItem>

Source reference: src/collections/observableSet/ObservableSet.ts:8.

Generic Parameters

  • TItem - The type of items the set contains.

Constructors

Properties

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

Methods

  • override add - Ensures the provided item is in the set. There can be at most only one instance of an item in a set at any given time.
  • override clear - Empties the set of all items.
  • override delete - Ensures the provided item is not in the set.

Inheritance Hierarchy

Clone this wiki locally