Opened 13 years ago

Last modified 10 years ago

#10201 closed defect

Programatically removing a tab in a tabcontainer does not work — at Initial Version

Reported by: vorun Owned by: anonymous
Priority: high Milestone: tbd
Component: Dijit Version: 1.4.0b
Keywords: Cc:
Blocked By: Blocking:


The makeTab function is from the test_TabContainer.html page.

function makeTab() { var tc = dijit.byId("mainTabContainer"); var cp = new dijit.layout.ContentPane? ({ title: 'Programmatically created tab ' + (progTabCounter++) , closable: true }); cp.domNode.innerHTML = "I was created programmatically!"; tc.addChild(cp, 0); }

I added this function to remove the current selectedChildWidget function removeTab() { var tc = dijit.byId("mainTabContainer"); tc.removeChild(tc.selectedChildWidget); }

Change History (0)

Note: See TracTickets for help on using tickets.