Disposing: function (sender, args)
sender. Event source.
args. Event information. Arguments: Index - position of a deleted tab.
The Disposing event occurs after deleting a tab.
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: