removeItemByIndex (index, notDispose)
index. Index of the tab to be removed.
notDispose. Determines whether to fully delete the tab.
The removeItemByIndex method removes a tab by its index.
To execute the example, the page must contain the NavigationBar component named NB (see Example of Creating the NavigationBar Component). Add an event handler for NavigationBar.Collapsed:
NB.Collapsed.add(function ()
{
NB.removeItemByIndex(0)
})
After closing any of the tabs the first tab of the panel is removed.
See also: