getRowCells(rowIndex: Number, startColIndex: Number, endColIndex: Number);
rowIndex. Table row index.
startRowIndex. Index of the starting column for cell selection in the specified row.
endRowIndex. Index of the last column in the cell selection ends in the specified row.
The getRowCells method gets the array of cells in a specified row and in specified range of table columns.
This method returns an array of PP.Ui.TabSheetCell objects.
To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Get coordinates and values for the cells in the row 1 within the range of columns with indexes between 0 to 2 (inclusive):
// Get table data model var model = tabSheet.getModel(); // Get cells from the row with the 1 index in the range of columns with indexes between 0 and 2 var rowCells = model.getRowCells(1, 0, 2); // Output information about obtained cells for (var i in rowCells) { // Determine cell coordinates var coord = rowCells[i].getCoord(); console.log("Cell value: (" + coord.rowIndex + ", " + coord.colIndex + "): " + rowCells[i].CellData.FormattedText); };
After executing the example the browser console shows coordinates and values of the cells in the row 1 within the range of columns with indexes between 0 to 2 (inclusive):
Cell value: (1, 0): 19281
Cell value: (1, 1): 5315
Cell value: (1, 2): 14031
See also: