applies the callback to a range of cells
startrow | number | the start row id |
startcol | string | the start column id |
numrows | number | the amount of rows |
numcols | number | the amount of columns |
callback | function | the function calling for each cell in the specified range |
getOnly | boolean | if true, the callback will be applied to the range of cells, but will not change their values |
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);
});
Parameters of the callback function are:
If startrow === null, mapping starts from the first row of the table. If startcol === null, mapping starts from the first column of the table. If numrows === null, the callback is applied to all rows, starting from the startrow. If numcols === null, the callback is applied to all columns, starting from the startcol.