cf2:ObservablePropertySet

Purpose

An observable property set is an object that can contain a number of observable properties.

Exported Features

cf2:ObservablePropertySet

Imported Features

cf2:ObservableProperty

JavaScript

The V$.cf2.OPSet mixin class defines the following methods.

opGet(name)

Returns the named property. If the property does not exist, then it returns null.

Parameter Description Type
name The name of the property to retrieve. String
opAdd(name, options, results)

Creates the named property. The current set is the owner of the new property.

Parameter Description Type
name The name of the property to add. String
options A set of options that determine how the property is created. See the description of the options parameter in cf2:ObservableProperty for details. Map
results The optional output creation results. Refer to the description of the results parameter in cf2:ObservableProperty for further information. Map
opAlias(name, property)

Adds the property using the specified name. The name and the owner of the added property are not affected, i.e. they are the same as they were when the property was originally added to its owning component. It is an error if a property with the same name already exists.

Note:

This method is not intended for use by custom JavaScript.

Parameter Description Type
name The name of the property to add. String
Property The property to add. String

Related topics