onStyleSet

fires when a new style is set for a cell

void onStyleSet(string name,string|number value);
namestringthe style name
valuestring|numberthe style value; for "indent", the number of steps: 1 or -1

Example

$$("ssheet").attachEvent("onStyleSet",function(name, value){
    // your code here
});

Details

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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix popular javascript framework and page of web based spreadsheet product.