partkeepr

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

ProjectEditorComponent.js (786B)


      1 /**
      2  * Represents the project editor component
      3  */
      4 Ext.define('PartKeepr.ProjectEditorComponent', {
      5     extend: 'PartKeepr.EditorComponent',
      6     alias: 'widget.ProjectEditorComponent',
      7     navigationClass: 'PartKeepr.ProjectGrid',
      8     editorClass: 'PartKeepr.ProjectEditor',
      9     newItemText: i18n("New Project"),
     10     model: 'PartKeepr.ProjectBundle.Entity.Project',
     11     initComponent: function ()
     12     {
     13         this.createStore({
     14             sorters: [
     15                 {
     16                     property: 'name',
     17                     direction: 'ASC'
     18                 }
     19             ]
     20         });
     21 
     22         this.callParent();
     23     },
     24     statics: {
     25         iconCls: 'fugue-icon drill',
     26         title: i18n('Projects'),
     27         closable: true,
     28         menuPath: [{ text: i18n("Edit")}]
     29     }
     30 });