Breadcrumb.BeforeRemoveItem

Syntax

BeforeRemoveItem: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The BeforeRemoveItem event occurs before removing an item from the Breadcrumb component.

Example

To execute the example, create the Breadcrumb component with a collection of children. Add event handlers for the BeforeRemoveItem and RemoveItem events:

       bread.BeforeRemoveItem.add(function (sender, args) {

            alert("The item will be removed");

        });

        bread.RemoveItem.add(function (sender, args) {

            alert("The item has been removed");

        });

After executing the example, the Item will be removed message is displayed before removing the item, that is, on pressing the button. On item removing, the Item has been removed message is displayed.

The item removal events occur on adding items from the history:

See also:

Breadcrumb