Documentation
Reference
2.1.55 (current version)
collection
interactivityModel
Interfaces

ICollection

Extends IEventEmitter.

Interface for a collection.

Constructor | Fields | Events | Methods

Constructor

ICollection()

Fields

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

Events

NameDescription
add

A child object was added.

remove

A child object was deleted.

Methods

NameReturnsDescription
add(object)

ICollection

Adds a child object to the collection.

getIterator()

IIterator

Returns iterator for the collection.

remove(object)

ICollection

Removes a child object from the collection.

Events details

add

A child object was added.

remove

A child object was deleted.

Methods details

add

Adds a child object to the collection.

Returns self-reference.

Parameters:

ParameterDefault valueDescription
object*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Object

Object being added.

* Mandatory parameter/option.

getIterator

{IIterator} getIterator()

Returns iterator for the collection.

remove

Removes a child object from the collection.

Returns self-reference.

Parameters:

ParameterDefault valueDescription
object*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Object

Object being removed.

* Mandatory parameter/option.