Optionalarray: (Dataset | DatasetGroup)[]Optionaloptions: OptionsCollection options.
The length of the collection. Shorthand for getLength
Change the length of the collection
Add a Dataset to the collection
to add
Optionalindex: numberthe Dataset will be added to.
New length of the collection.
Key name.
Listener.
Type.
Listener.
ProtectedapplyProtectedApply any properties from another object without triggering events.
The source object.
Dispatches an event and calls all listeners listening for events
of this type. The event parameter can either be a string or an
Object with a type property.
Event object.
false if anyone called preventDefault on the
event object or if any of the listeners returned false.
Clean up.
ProtecteddisposeProtectedExtension point for disposable objects.
Add elements to the collection. This pushes each item in the provided array to the end of the collection.
Array.
This collection.
Iterate over each element, calling the provided callback.
The function to call for every element. This function takes 3 arguments (the element, the index and the array). The return value is ignored.
Get a reference to the underlying Array object. Warning: if the array is mutated, no events will be dispatched by the collection, and the collection's "length" property won't be in sync with the actual length of the array.
Array.
Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.
Type.
Listeners.
Get an object of all property names and values.
Object.
Optionaltype: stringType. If not provided,
true will be returned if this event target has any listeners.
Has listeners.
The object has properties.
Insert an element at the provided index.
Index.
Element.
Get the element at the provided index.
Index.
Element.
Key name.
Old value.
ProtectedonceProtectedonRemove the last element of the collection and return it.
Return undefined if the collection is empty.
Element.
Insert the provided element at the end of the collection.
Element.
New length of the collection.
Remove a Dataset from the collection
The removed Dataset or undefined if none found.
Remove the element at the provided index and return it.
Return undefined if the collection does not contain this index.
Index.
Value.
Key name.
Listener.
Type.
Listener.
Set the element at the provided index.
Index.
Element.
ProtectedunProtectedUnlisten for a certain type of event.
Type.
Listener.
Array.