Lines Matching refs:Model
2 Provides an API for managing an ordered list of Model instances.
10 Provides an API for managing an ordered list of Model instances.
44 @param {Model} model The model being added.
56 @param {Model} model The model being created/updated.
106 @param {Model} model The model being removed.
124 @param {Model[]} models Array of the list's new models after the reset.
139 The `Model` class or subclass of the models in this list.
150 @type Model|String
151 @default Y.Model
153 model: Y.Model,
177 // Look for a namespaced Model class on `Y`.
181 Y.error('ModelList: Model class not found: ' + model);
208 list.add(new Model({foo: 'bar'}));
223 @param {Model|Model[]|ModelList|Object|Object[]} models Model or array of
234 @return {Model|Model[]} Added model or array of added models.
257 var list = new Y.ModelList({model: Y.Model});
264 @param {Model} model Model being sorted.
276 @param {Model|Object} model Model to create. May be an existing model
288 @return {Model} Created model.
346 @param {Model} callback.model Model instance.
392 @see Model.get()
414 @see Model.getAsHTML()
435 @see Model.getAsURL()
450 @return {Model} Model, or `null` if not found.
464 @param {String|Number} id Model id.
465 @return {Model} Model, or `null` if not found.
491 @return {Model} The model at the specified index, or `undefined` if there
569 @param {Model} fn.model Current model being iterated.
571 @param {Model[]} fn.models Array of models being iterated.
621 @param {Model|Model[]|ModelList} models Models to remove.
628 @return {Model|Model[]} Removed model or array of removed models.
651 @param {Model[]|ModelList|Object[]} [models] Models to add. May be existing
787 @see Model.toJSON()
804 @param {Model|Object} model Model or object to add.
809 @return {Model} The added model.
827 error: 'Model is already in the list.',
849 @param {Model} model Model to attach to this list.
895 @param {Model} model Model to detach.
912 @param {Model} model The model being inserted.
948 @param {Model} model Model to remove.
953 @return {Model} Removed model.
964 error: 'Model is not in the list.',
987 @param {Model} a First model to compare.
988 @param {Model} b Second model to compare.