I need to be able to detach a node from the DOM
and attach it to a HorizontalPanel
at runtime using GwtQuery
.
My code looks like this:
@PageShown
public void pageReady() {
horizontalPanel.add($("#bar1").widget());
horizontalPanel.add($("#bar2").widget());
horizontalPanel.add($("#bar3").widget());
}
Where #bar1
, et. al are already attached in the DOM, what I need to do is that these 3 bars should be piled horizontally so I need to attach them to a HorizontalPanel.
Update:
After promoting the DOM element into Panel the horizontalPanel
is still empty:
<table cellspacing="0" cellpadding="0" data-field="navPanel"><tbody><tr></tr></tbody></table>