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.
ProtectedapplyIs dataset in collection
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.
ProtecteddisposeAdd 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.
Insert an element at the provided index.
Index.
Element.
Get the element at the provided index.
Index.
Element.
Move a Dataset in the collection to at specific postion
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.
Set the element at the provided index.
Index.
Element.
Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Values.
Optionalsilent: booleanUpdate without triggering an event.
Toggle a Dataset in the collection
Protectedun
Array.