javascript - How to check if certain extjs panel is loaded -
i have add add javascript code after panel loaded (i have use panel id). how can check panel rendered , can access id using document.getelementbyid. thanks
you should consult documentation.
for each of questions:
- you can 1 of many events exposed. there afterrender event.
- you set
id
of panel accordingly. components have id property result of inheritanceabstractcomponent
, see docs on this.
this code:
var mypanel = ext.create('ext.panel.panel', { id : 'thisisyourid', //<<set renderto: ext.getbody() }); mypanel.on("afterrender", function() { //this code run after panel renders. });
Comments
Post a Comment