Type parameter extending BaseModel.
Constructs a new BaseCollection.
Initial data for the collection.
Event listeners registered for this instance.
Unique identifier for the instance.
Indicates if the collection is currently loading.
The array of models in the collection.
Gets the class name of this instance.
Emits an event by name to all registered listeners on that event.
Listeners will be called in the order that they were added. If a listener
returns false
, no other listeners will be called.
The name of the event to emit.
Rest
...args: any[]The context of the event, passed to listeners.
Finds the index of a model in the collection based on its unique ID (_uid).
The model to find.
Overrides a model in the collection with a new model instance. If the model to override is not found, no action is taken.
The new model instance to use for override.
Removes a model from the collection.
The model to remove.
Generated using TypeDoc
Represents a collection of some models that extends from BaseModel instances. BaseCollection is basically a wrapper around array of Models