Tuesday, June 30, 2015

ExtJS - Remove Listeners

  • As adding the listeners , Listeners can be removed from Extjs.
  • Calling function ON() with the event will be creating the event.
  • Below example explains how to remove the listener using UN() method.

var sayHello = function() {
   alert('Hello');
};

var button = Ext.create('Ext.Button', {
    renderTo: Ext.getBody(),
    text: 'Say Hello',
    listeners: {
        click: sayHello,
    }
});


button.un('click', sayHello);


No comments:

AWS Interview Questions and Answers

Sure! Here are the answers to the **AWS Services and Cloud Infrastructure** questions: ### **AWS Services and Cloud Infrastructure (50 Ques...