NavigationBar.SelectableSelected

Syntax

SelectableSelected: function(sender, args)

Parameters

sender. Event source.

args. Event information. Available arguments: Event - event settings; Element - DOM element, at which an event occurred; Control - clicked element.

Description

The SelectableSelected event occurs on the mouse click on the side panel.

Example

To execute the example, the page must contain the NavigationBar component named navigationBar (see Example of Creating the NavigationBar Component). Add a handler of side panel element click event:

// Add a handler of side panel element click
navigationBar.SelectableSelected.add(function(sender, args) {
    console.log("side panel element is clicked");
});

After clicking any tab a message about click is displayed in the console:

Side panel element is clicked

See also:

NavigationBar