Collection

Collection

An array backed collection that can look up elements loosely based on id or label.

Constructor

new Collection(options)

Source:
Tutorials:
  • Tutorial: tests/CollectionTest.js
Properties:
Name Type Description
primaryKey String This is the optional attribute to look in the objects when doing a get or find
inverted Boolean This is the optional parameter for whether the collection should be inserted from the bottom or the top of the collection
Parameters:
Name Type Description
options Object Optional json initialization object

Extends

  • Object