getSelectedParts() : Array of Objects;
The getSelectedParts method returns an array of table areas included into the current selection.
The method returns an array of objects containing information about selected area. Dimension key is included into information for dimensions.
Area names are given in the PP.Exp.Ui.EaxTablePart enumeration.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component).
var eaxAnalyzer = expressBox.getSource(); // Get selected table areas parts = eaxAnalyzer.getSelectedParts(); // Output area names to the console for (var i = 0; i < parts.length; i++) { console.log(parts[i].part); };
After executing the example the console displays names of selected areas.
See also: