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() {

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

button.un('click', sayHello);

1 comment

for ict 99 said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. ES6 Training in Chennai

Powered by Blogger.