Documentation

mapSelection

executes some custom method for all cells in the currently selected block

void mapSelection(function callback);

Parameters

callbackfunctionthe callback function

See also

Example

//uppercase selected cells
dtable.mapSelection(function(value){
    return value.toString().toUpperCase(); 
});

-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 selected block -col_ind number the column index of a cell within the selected block Back to top