NavigationBar.removeItemByIndex

Syntax

removeItemByIndex (index, notDispose)

Parameters

index. Index of the tab to be removed.

notDispose. Determines whether to fully delete the tab.

Description

The removeItemByIndex method removes a tab by its index.

Example

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:

NavigationBar