EaxModeSelectorView.BeforeViewModeChanged

Syntax

BeforeViewModeChanged: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The BeforeViewModeChanged event occurs before changing the data view layout mode.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Handle the BeforeViewModeChanged event:

// Get an object of the EaxDataView class
var dataView = expressBox.getDataView();
// Get a view of the Layout button
var modeSelector = dataView.getModeSelectorView();
// Handle the BeforeViewModeChanged event
modeSelector.BeforeViewModeChanged.add(
    function () {
        // Refresh component for selecting data view display mode
        modeSelector.refresh();
    }

After executing the example each time the BeforeViewModeChanged event occurs, the Layout button used to select data view layout mode is refreshed.

See also:

EaxModeSelectorView