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...
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
Post a Comment