partkeepr

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

GridImporterButton.js (651B)


      1 Ext.define("PartKeepr.Importer.GridImporterButton", {
      2     extend: "Ext.button.Button",
      3 
      4     initComponent: function ()
      5     {
      6         this.handler = this.onImport;
      7         this.callParent(arguments);
      8     },
      9     onImport: function () {
     10         var j = Ext.create("Ext.window.Window", {
     11             items: Ext.create("PartKeepr.Importer.Importer", {
     12                 model: this.up("gridpanel").getStore().getModel()
     13             }),
     14             title: i18n("Import"),
     15             width: "80%",
     16             height: "80%",
     17             layout: 'fit',
     18             maximizable: true,
     19             closeAction: 'destroy'
     20 
     21         });
     22         j.show();
     23     }
     24 });