onBeforeStyleChange

fires before applying a new style for a cell

boolean onBeforeStyleChange(number row,number column,object style,object oldStyle, [string page] );
rownumberthe ID of the row
columnnumberthe ID of the column
styleobjectthe new style for a cell
oldStyleobjectthe old style of a cell
pagestringthe name of the sheet
booleanreturning false will prevent applying a new style for a cell

Example

$$("spsheet1").attachEvent("onBeforeStyleChange", function(row,col,style,oldSt,page){
    // some code here
    return true;
});

Details

The event is not called for pasting copied data. Use onBeforePaste instead.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.