compactStyles

removes unused styles for the current sheet

void compactStyles();

Example

$$("ss1").compactStyles();

Related samples

Details

Note that this method doesn't clear the unused number formats, as the method clears the current sheet, while number formats are common for all the sheets.

To clear the unused number formats, use the following code:

const serialized = spreadsheet.serialize({sheets:true, compactStyles:true});
spreadsheet.parse(serialized);
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 web ui framework and page of spreadsheet javascript library product.