partkeepr

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

FootprintEditorComponent.js (891B)


      1 Ext.define('PartKeepr.FootprintEditorComponent', {
      2     extend: 'PartKeepr.EditorComponent',
      3     alias: 'widget.FootprintEditorComponent',
      4     navigationClass: 'PartKeepr.FootprintNavigation',
      5     editorClass: 'PartKeepr.FootprintEditor',
      6     newItemText: i18n("New Footprint"),
      7     model: 'PartKeepr.FootprintBundle.Entity.Footprint',
      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 fingerprint',
     26         title: i18n('Footprints'),
     27         closable: true,
     28         menuPath: [{ text: i18n("Edit")}]
     29     }
     30 });