getSparkLine();
The getSparkLine method returns the sparkline located in table cell.
The method returns an instance of the PP.Ui.TabSheetCellSparkLine class containing information about sparkline parameters.
To execute the example, the HTML page must contain the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) containing the table with sparklines displayed by columns. Get information about the sparkline in the cell with coordinates (1, 1):
var tabSheet = expressBox.getDataView().getGridView().getTabSheet(); var cell = tabSheet.getModel().getCell(tabSheet.coord(1, 1)); var SparkLine = cell.getSparkLine(); console.log(SparkLine);
After executing the example the browser console shows information about the sparkline in the cell with coordinates (1, 1):
PP.Ui.TabSheetCellSparkLine {_Parent: PP.Ui.TabSheetCell ...}
See also: