Reputation: 1401
I am trying to impl. a 'Split Horizontal' feature for dijit.TabContainer.
I tried :
otherTabContainer.addChild(tabToMove) and also variations of removeChild and addChild but I always endup with a very weird behavior. It seems the source tab-container contain retains a reference to the tab of interest. However, I also tried to move the tab's domNode to a temp. location in order to save it from removeChild's destructive nature but still no success.
Any ideas ?
thank you!
Upvotes: 0
Views: 275
Reputation: 1600
Remove the desired content pane widget from first tab and add it to second tab.
var parent1 = dijit.byId("tabcontainerId1");
var parent2 = dijit.byId("tabcontainerId2");
var tab = dijit.byId("contentPaneId");
parent1.removeChild(tab);
parent2.addChild(tab);
Upvotes: 2