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:

  1. you can 1 of many events exposed. there afterrender event.
  2. you set id of panel accordingly. components have id property result of inheritance abstractcomponent, 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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -