javascript - ExtJS multiple listeners -


i have property grid want add multiple "afterrender" listeners to. possible add multiple listeners of same type, or fire multiple functions within 1 listener?

i've tried:

afterrender: function(){...}, function(){...} 

but not fire both of functions.

just make multiple function calls within function callback. below shows full example of this...

working fiddle

ext.create('ext.grid.property.grid', {     title: 'properties grid',     width: 300,     renderto: ext.getbody(),      functionone: function() {         alert("functionone called");     },      functiontwo: function() {         alert("functiontwo called");     },      listeners: {         afterrender: function() {             var me = this;             me.functionone();             me.functiontwo();         }     } }); 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -