Documentation

mapCells

applies the callback to a range of cells

void mapCells(numberstartrow,stringstartcol,numbernumrows,numbernumcols,functioncallback);

Parameters

startrownumberthe start row index
startcolstringthe start column index
numrowsnumberthe amount of rows
numcolsnumberthe amount of columns
callbackfunctionthe function calling for each cell in the specified range

See also

Example

grid.mapCells(1, "title", 3, 2, function(value, row_id, column_id, row_ind, col_ind) {
    console.log(value, row_id, column_id, row_ind, col_ind);
});

-value string|int the cell value -row_id string|int the row id -column_id string|int the column id -row_ind number the row index of a cell within the specified range -col_ind number the column index of a cell within the specified range Back to top