mapCells
applies the callback to a range of cells
void mapCells(number startrow,string startcol,number numrows,number numcols,function callback);
Parameters
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 |
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);
});
Related samples
Details
Parameters of the callback function are:
- value - (string,number) the cell value
- row_id - (string,number) the row id
- column_id - (string,number) the column id
- row_ind - (number) the row index of a cell within the selected block
- col_ind - (number) the column index of a cell within the selected block
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix
js frameworks and page of
js xlsx product.