BeforeStyleChange

fires before the style of cells is changed

boolean BeforeStyleChange(string cell,object|array style){ ... };

Parameters

cellstringthe id(s) of a cell(s)
styleobject|arraystyles set for a cell/cells

Returns

booleantrue to change the style of a cell(s), false to prevent changing of style

Example

spreadsheet.events.on("BeforeStyleChange", function(cell,style){
console.log("Style of cell "+spreadsheet.selection.getSelectedCell()+" will change");
    return true;
});

Details

The event is blockable, returning false will prevent changing of style.

See also
Back to top