ModelCollectionComponent

ModelCollectionComponent

new ModelCollectionComponent()

The base class for model collection components.

Source:

Methods

(static) clear(id)

Remove an element.

Parameters:
Name Type Description
id number

The element ID to delete.

Source:

(static) clearAll()

Removes all elements.

Source:

(static) exists(id)

Check if an element exists.

Parameters:
Name Type Description
id number

Element ID.

Source:

(static) get(ids)

Get the data for one element or all elements of the object.

Parameters:
Name Type Description
ids Array.<number> | number

A single element ID or an array of element IDs to return.

Source:

(static) length()

Get the number of elements in the object.

Source: