NavigationItem.Disposing

Syntax

Disposing: function (sender, args)

Parameters

sender. Event source.

args. Event information. Arguments: Index - position of a deleted tab.

Description

The Disposing event occurs after deleting a tab.

Example

To execute the example, the page must contain the NavigationBar component named navigationBar (see Example of Creating the NavigationBar Component). Add an element delete event handler for the first tab:

navigationBar.getLayoutItems()[0].Disposing.add(function (sender, args) {
    console.log("Element with index is deleted: " + args.Index);
});

Totally delete the first element:

// Totally delete the first element
navigationBar.getLayoutItems()[0].dispose();

As a result the console displays information about deleting the first element:

Element with index is deleted: 0

See also:

NavigationItem