getModeSelectorView();
The getModeSelectorView method returns the button used to select data view layout mode.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Then use the PP.Exp.Ui.EaxModeSelectorType enumeration to set the data view layout mode to Horizontally:
// Get an object of the EaxDataView class var dataView = expressBox.getDataView(); // Get a view of the Layout button var modeSelector = dataView.getModeSelectorView(); modeSelector.setModeSelectorState(PP.Exp.Ui.EaxModeSelectorType.Horizontal);
Horizontal mode of displaying data view is set as the result of the example execution. If the user selects the Table and Bubble Chart buttons, corresponding views are shown horizontally next to each other:
See also: