| /yui3/src/app/tests/benchmark/ |
| H A D | app-benchmark.js | 5 // -- Y.Model ------------------------------------------------------------------ 6 suite.add('Y.Model: Instantiate a bare model', function () { 7 var model = new Y.Model(); 10 suite.add('Y.Model: Subclass and instantiate a bare model', function () { 11 var MyModel = Y.Base.create('myModel', Y.Model, []),
|
| /yui3/build/model/ |
| H A D | model-debug.js | 16 In most cases, you'll want to create your own subclass of `Y.Model` and 21 @class Model 27 var GlobalEnv = YUI.namespace('Env.Model'), 53 custom error source defined by a Model subclass): 95 function Model() { 96 Model.superclass.constructor.apply(this, arguments); 99 Y.Model = Y.extend(Model, Y.Base, { 173 properties passed to Model's constructor. This makes it possible to 175 `Y.Model` an [all...] |
| /yui3/src/app/js/ |
| H A D | model.js | 14 In most cases, you'll want to create your own subclass of `Y.Model` and 19 @class Model 25 var GlobalEnv = YUI.namespace('Env.Model'), 51 custom error source defined by a Model subclass): 93 function Model() { function 94 Model.superclass.constructor.apply(this, arguments); 97 Y.Model = Y.extend(Model, Y.Base, { 171 properties passed to Model's constructor. This makes it possible to 173 `Y.Model` an [all...] |
| H A D | model-list.js | 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, [all...] |
| /yui3/src/app/tests/ |
| H A D | model-test.js | 13 // -- Model Suite -------------------------------------------------------------- 14 modelSuite = new Y.Test.Suite('Model'); 16 // -- Model: Lifecycle --------------------------------------------------------- 21 var model = new Y.Model(); 34 model = new Y.Model(); 47 model = new Y.Model(); 61 model = new Y.Model(); 84 var model = new Y.Model(), 105 // -- Model: Attributes and Properties ----------------------------------------- 110 this.TestModel = Y.Base.create('testModel', Y.Model, [], { [all...] |
| H A D | model-list-test.js | 21 this.list = new Y.ModelList({model: Y.Model}); 29 var model = new Y.Model(); 57 'ModelList instances should have a `model` property that defaults to Y.Model': function () { 58 Assert.areSame(Y.Model, this.list.model); 62 var CustomModel = Y.Base.create('customModel', Y.Model, []), 69 Y.CustomModel = Y.Base.create('customModel', Y.Model, []); 81 Y.namespace('Foo.Bar').CustomModel = Y.Base.create('customModel', Y.Model, []); 99 this.TestModel = Y.Base.create('testModel', Y.Model, [], {}, { 371 var CustomModel = Y.Base.create('customModel', Y.Model, [], { 673 this.TestModel = Y.Base.create('testModel', Y.Model, [], {}, { [all...] |
| H A D | view-test.js | 140 var model = new Y.Model(),
|
| /yui3/src/datatable/tests/ |
| H A D | datatable-base-tests.js | 93 var model = Y.Base.create('test-model', Y.Model, [], {}, {
|
| H A D | datatable-core-tests.js | 628 modelList.model = Y.Base.create('testModel', Y.Model, [], {}, { 762 var model = Y.Base.create('test-model', Y.Model, [], {}, { 865 "test instantiation with recordType: Model": function () { 866 var Model = Y.Base.create('testModel', Y.Model, [], {}, { 874 recordType: Model, 881 Y.Assert.areSame(Model, table.data.model); 898 modelList.model = Y.Base.create('testModel', Y.Model, [], {}, { 946 modelList.model = Y.Base.create('test-model', Y.Model, [], {}, {
|
| H A D | datatable-body-tests.js | 246 "getRecord(node) should return the corresponding Model": function () { 252 "getRecord(childNode) should return the corresponding Model": function () { 258 "getRecord(model.id) should return the corresponding Model": function () { 259 var M = Y.Base.create('testModel', Y.Model, [], { 285 "getRecord(model.clientId) should return the corresponding Model": function () { 291 "getRecord(rowId) should return the corresponding Model": function () { 297 "getRecord(childElId) should return the corresponding Model": function () {
|
| /yui3/src/datatable/tests/src/ |
| H A D | datatable-base.js | 91 var model = Y.Base.create('test-model', Y.Model, [], {}, {
|
| H A D | datatable-core.js | 626 modelList.model = Y.Base.create('testModel', Y.Model, [], {}, { 760 var model = Y.Base.create('test-model', Y.Model, [], {}, { 863 "test instantiation with recordType: Model": function () { 864 var Model = Y.Base.create('testModel', Y.Model, [], {}, { 872 recordType: Model, 879 Y.Assert.areSame(Model, table.data.model); 896 modelList.model = Y.Base.create('testModel', Y.Model, [], {}, { 944 modelList.model = Y.Base.create('test-model', Y.Model, [], {}, {
|
| H A D | datatable-body.js | 244 "getRecord(node) should return the corresponding Model": function () { 250 "getRecord(childNode) should return the corresponding Model": function () { 256 "getRecord(model.id) should return the corresponding Model": function () { 257 var M = Y.Base.create('testModel', Y.Model, [], { 283 "getRecord(model.clientId) should return the corresponding Model": function () { 289 "getRecord(rowId) should return the corresponding Model": function () { 295 "getRecord(childElId) should return the corresponding Model": function () {
|
| /yui3/src/datatable/js/ |
| H A D | core.js | 80 this column. Also used to create a default Model if no `recordType` or 113 Model subclass to use as the `model` for the ModelList stored in the `data` 124 3. If the `data` attribute is set with a non-empty array, a Model subclass 127 4. If the `columns` attribute is set, a Model subclass will be generated 523 Returns the Model associated to the record `id`, `clientId`, or index (not 524 row index). If none of those yield a Model from the `data` ModelList, the 528 If no Model can be found, `null` is returned. 533 @return {Model} 553 Returns the `<tr>` Node from the given row index, Model, or Model' [all...] |
| /yui3/build/datatable-core/ |
| H A D | datatable-core-debug.js | 82 this column. Also used to create a default Model if no `recordType` or 115 Model subclass to use as the `model` for the ModelList stored in the `data` 126 3. If the `data` attribute is set with a non-empty array, a Model subclass 129 4. If the `columns` attribute is set, a Model subclass will be generated 525 Returns the Model associated to the record `id`, `clientId`, or index (not 526 row index). If none of those yield a Model from the `data` ModelList, the 530 If no Model can be found, `null` is returned. 535 @return {Model} 555 Returns the `<tr>` Node from the given row index, Model, or Model' [all...] |
| /yui3/build/model-list/ |
| H A D | model-list-debug.js | 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, [all...] |