fires when a new style is set for a cell
| name | string | the style name |
| value | string|number | the style value; for "indent", the number of steps: 1 or -1 |
$$("ssheet").attachEvent("onStyleSet",function(name, value){
// your code here
});
Since v11.2 some style-related actions ("font-weight", "font-style", "underline", "strike" and "wrap") work as toggles in the menu. So, the callback function for the onStyleSet event for these actions can be called only with the name parameter, while the value parameter will be undefined.
Back to top