EaxModeSelectorView.GetCurrentViewMode

Syntax

GetCurrentViewMode();

Description

The GetCurrentViewMode method returns the current data view layout mode.

Comments

The method returns an element of the PP.Exp.Ui.EaxViewMode enumeration.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Get the current data view layout mode and check if it is available:

// Get an object of the EaxDataView class
var dataView = expressBox.getDataView();
// Get view of the Layout button
var modeSelector = dataView.getModeSelectorView();
var currentViewMode =   modeSelector.GetCurrentViewMode();
console.log("Current mode: " + currentViewMode);
console.log("Is the mode available: " + modeSelector.IsViewModeAvailable(currentViewMode));

After executing the example the browser console displays name of the current mode and indicates if it is available:

Current mode: undefined
Mode availability: False

See also:

EaxModeSelectorView