BeforeSelectionSet

fires before cells are selected

boolean BeforeSelectionSet(string cells){ ... };

Parameters

cellsstringthe id(s) of a cell(s)

Returns

booleantrue to select cells, false to prevent selection of cells

Example

spreadsheet.events.on("BeforeSelectionSet", function(cells){
    console.log("Cells "+spreadsheet.selection.getSelectedCell()+" will be selected");
    return true;
});

Details

The event is blockable, returning false will prevent selection of cells.

See also
Back to top