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;
});

See also
Back to top