Lines Matching refs:Model

4 Provides an API for managing an ordered list of Model instances.
12 Provides an API for managing an ordered list of Model instances.
46 @param {Model} model The model being added.
58 @param {Model} model The model being created/updated.
108 @param {Model} model The model being removed.
126 @param {Model[]} models Array of the list's new models after the reset.
141 The `Model` class or subclass of the models in this list.
152 @type Model|String
153 @default Y.Model
155 model: Y.Model,
179 // Look for a namespaced Model class on `Y`.
183 Y.error('ModelList: Model class not found: ' + model);
210 list.add(new Model({foo: 'bar'}));
225 @param {Model|Model[]|ModelList|Object|Object[]} models Model or array of
236 @return {Model|Model[]} Added model or array of added models.
259 var list = new Y.ModelList({model: Y.Model});
266 @param {Model} model Model being sorted.
278 @param {Model|Object} model Model to create. May be an existing model
290 @return {Model} Created model.
348 @param {Model} callback.model Model instance.
394 @see Model.get()
416 @see Model.getAsHTML()
437 @see Model.getAsURL()
452 @return {Model} Model, or `null` if not found.
466 @param {String|Number} id Model id.
467 @return {Model} Model, or `null` if not found.
493 @return {Model} The model at the specified index, or `undefined` if there
571 @param {Model} fn.model Current model being iterated.
573 @param {Model[]} fn.models Array of models being iterated.
623 @param {Model|Model[]|ModelList} models Models to remove.
630 @return {Model|Model[]} Removed model or array of removed models.
653 @param {Model[]|ModelList|Object[]} [models] Models to add. May be existing
789 @see Model.toJSON()
806 @param {Model|Object} model Model or object to add.
811 @return {Model} The added model.
829 error: 'Model is already in the list.',
851 @param {Model} model Model to attach to this list.
897 @param {Model} model Model to detach.
914 @param {Model} model The model being inserted.
950 @param {Model} model Model to remove.
955 @return {Model} Removed model.
966 error: 'Model is not in the list.',
989 @param {Model} a First model to compare.
990 @param {Model} b Second model to compare.