ModelStore.js (536B)
1 Ext.define("PartKeepr.Data.Store.ModelStore", { 2 extend: "Ext.data.Store", 3 4 storeId: "ModelStore", 5 6 fields: [ 7 { 8 name: "model", type: "string" 9 }, { 10 name: "description", type: "string" 11 } 12 ], 13 14 statics: { 15 addModel: function (model, description) 16 { 17 Ext.StoreManager.lookup("ModelStore").add({ 18 model: model, 19 description: description 20 }); 21 } 22 } 23 }); 24 25 Ext.create("PartKeepr.Data.Store.ModelStore");