setWindowsPosition(report: PP.Exp.EaxDocument, metadata: Object, callback: PP.Delegate);
report. Express report instance.
metadata. Layout of express report views. This parameter is a JSON object with the windowsPosition property, that determines layout of express report views.
callback. Callback function.
The setWindowsPosition method sets layout for express report views.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Set vertical layout for express report views:
// Get a service used to work with express report var eaxMdService = expressBox.getService(); // Get express report document var eaxAnalyzer = expressBox.getSource(); // Determine callback function var onSetWindowsPositionChanged = function (sender, args) { var eaxToolBar = expressBox.getDataView().getToolBarView(); eaxToolBar.setEnabled(True); expressBox.refreshAll(); }; // Determine metadata var metadata = { windowsPosition: "Vertical" }; // Set layout eaxMdService.setWindowsPosition(eaxAnalyzer, metadata, PP.Delegate(onSetWindowsPositionChanged, this));
After executing the example select the Bubble Chart layout in addition to the Table layout. They will be positioned vertically:
See also: