Class: ObservableExpandedKeySet

Oracle® JavaScript Extension Toolkit (JET)
5.0.0

E90577-01

QuickNav

ObservableExpandedKeySet

Version:
  • 5.0.0
Module:
  • ojknockout-keyset
Observable implementation of ExpandedKeySet that keeps track of mutation of KeySet.

Constructor

new ObservableExpandedKeySet(initialValue)

Create an observable version of a KeySet.
Parameters:
Name Type Argument Description
initialValue ExpandedKeySet | ExpandAllKeySet <optional>
The KeySet to observe.

Methods

add(keys) → {ObservableExpandedKeySet}

Updates the observable with a KeySet that includes the specified keys.
Parameters:
Name Type Description
keys Set | Array a set of keys to add to this KeySet.
Returns:
this observable KeySet.
Type
ObservableExpandedKeySet

addAll() → {ObservableExpandedKeySet}

Updates the observable with a KeySet that has all keys.
Returns:
this observable KeySet.
Type
ObservableExpandedKeySet

clear() → {ObservableExpandedKeySet}

Updates the observable with a KeySet that contains no keys.
Returns:
this observable KeySet.
Type
ObservableExpandedKeySet

delete(keys) → {ObservableExpandedKeySet}

Updates the observable with a KeySet that excludes the specified keys.
Parameters:
Name Type Description
keys Set | Array a set of keys to remove from this KeySet.
Returns:
this observable KeySet.
Type
ObservableExpandedKeySet