ExtJS – me.control

By 19. Oktober 2012 general No Comments

Here is a sample of the me.control function, normally in the init method of the controller.
I will update this from time to time…

var me = this;
me.control({
 'button[action=submit]' : {
    click : this.submitForm,
    scope : this
},
  'button[action=clear]' : {
    click : this.clearForm,
    scope : this
},
  'resultContainer' : {
    afterrender : function() {
      var resultContainer = Ext.ComponentQuery
      .query('resultContainer');
      resultContainer[0].hide();
    }
},
  'pkanalyse' : {
    afterrender : function() {
    this.afterrenderAnalyse();
    }
  }
});