Saturday, 15 June 2013

dom - How to getBodyElement() in RootLayoutPanel GWT -



dom - How to getBodyElement() in RootLayoutPanel GWT -

i want create progress bar before application starts. here code html page

<body> <div id="apploading"> <img src="images/bar.gif" /> </div> ... </body>

and later on client side wrote

dom.removechild(rootpanel.getbodyelement(), dom.getelementbyid("apploading"));

but i'm using rootlayoutpanel , doesn't have getbodyelement() method. help me please explain how remove progress bar now.

you don't need remove it. when attach rootlayoutpanel (after app loaded , starts), take on entire browser screen, , progress bar (and other html in host page) won't visible.

if, reason, still need bodyelement, can calling

document.get().getbody();

dom gwt

No comments:

Post a Comment