partkeepr

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

PartParameterSearchWindow.js (735B)


      1 Ext.define("PartKeepr.Components.Widgets.PartParameterSearchWindow", {
      2     extend: "Ext.window.Window",
      3     modal: true,
      4     layout: 'fit',
      5     title: i18n("Add Parametric Search Expression"),
      6     sourceModel: null,
      7 
      8     minHeight: 150,
      9     minWidth: 400,
     10 
     11 
     12      /* Constrain the window to fit the viewport */
     13     constrainHeader: true,
     14 
     15     initComponent: function ()
     16     {
     17         this.partParameterSearch = Ext.create("PartKeepr.Components.Widgets.PartParameterSearch");
     18         this.partParameterSearch.on("apply", this.onApply, this);
     19         this.items = this.partParameterSearch;
     20         this.callParent(arguments);
     21     },
     22 
     23     onApply: function (rec)
     24     {
     25         this.fireEvent("apply", rec);
     26         this.close();
     27     }
     28 });