partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

StorageLocationEditorComponent.js (905B)


      1 Ext.define('PartKeepr.StorageLocationEditorComponent', {
      2 	extend: 'PartKeepr.EditorComponent',
      3 	alias: 'widget.StorageLocationEditorComponent',
      4 	navigationClass: 'PartKeepr.StorageLocationNavigation',
      5 	editorClass: 'PartKeepr.StorageLocationEditor',
      6 	newItemText: i18n("New Storage Location"),
      7 	model: 'PartKeepr.StorageLocationBundle.Entity.StorageLocation',
      8 	initComponent: function () {
      9 		this.createStore({
     10 			sorters: [
     11                 {
     12                     property: 'category.categoryPath',
     13                     direction: 'ASC'
     14                 },{
     15                     property: 'name',
     16                     direction:'ASC'
     17                 }
     18         ],
     19             groupField: 'categoryPath'
     20 		});
     21 		
     22 		this.callParent();
     23 	},
     24     statics: {
     25         iconCls: 'fugue-icon wooden-box',
     26         title: i18n('Storage Locations'),
     27         closable: true,
     28         menuPath: [{text: i18n("Edit")}]
     29     }
     30 });