ManufacturerEditorComponent.js (777B)
1 Ext.define('PartKeepr.ManufacturerEditorComponent', { 2 extend: 'PartKeepr.EditorComponent', 3 alias: 'widget.ManufacturerEditorComponent', 4 navigationClass: 'PartKeepr.ManufacturerGrid', 5 editorClass: 'PartKeepr.ManufacturerEditor', 6 newItemText: i18n("New Manufacturer"), 7 model: 'PartKeepr.ManufacturerBundle.Entity.Manufacturer', 8 initComponent: function () 9 { 10 this.createStore({ 11 sorters: [ 12 { 13 property: 'name', 14 direction: 'ASC' 15 } 16 ] 17 }); 18 19 this.callParent(); 20 }, 21 statics: { 22 iconCls: 'fugue-icon building', 23 title: i18n('Manufacturers'), 24 closable: true, 25 menuPath: [{text: i18n("Edit")}] 26 } 27 });