import {LocalPrioritisedArray} from 'arva-js/data/local/LocalPrioritisedArray.js'
LocalPrioritisedArray
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(dataType: *) |
Inherited Summary
From class PrioritisedArray | ||
public get |
The number of items in the (synchronized or local) data set. |
|
public set |
A setter on the length is necessary because internal methods of Array modify the lngth. |
|
public |
Adds a model instance to the rear of the PrioritisedArray, and emits a 'child_added' and possibly 'new_child' event after successful addition. |
|
public |
Finds an item based on its Id in the datasource. |
|
public |
Inserts a model instance at the given position of the PrioritisedArray, and recalculates the priority (position) of all models after the inserted position. |
|
public |
Removes subscription to events emitted by this PrioritisedArray. |
|
public |
Subscribes to events emitted by this PrioritisedArray. |
|
public |
Subscribes to the given event type exactly once; it automatically unsubscribes after the first time it is triggered. |
|
public |
Adds a model or object to the end of the list. |
|
public |
Removes the model instance at the given position. |
Public Constructors
public constructor(dataType: *) source
Override:
PrioritisedArray#constructorParams:
Name | Type | Attribute | Description |
dataType | * |