NavigationItem.VisibleChanged

Syntax

VisibleChanged: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The VisibleChanged event occurs after changing tab visibility.

Example

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

navigationBar.getLayoutItems()[0].VisibleChanging.add(function (sender, args) {
    console.log("Side panel element visibility is changing")
});
navigationBar.getLayoutItems()[0].VisibleChanged.add(function (sender, args) {
    console.log("Side panel element visibility is changed")
});

Hide the first panel element:

// Hide the first panel element
navigationBar.getLayoutItems()[0].hide();

As a result the console displays information about changing of element visibility:

Side panel element visibility is changing

Side panel element visibility is changed

See also:

NavigationItem