reset

resets the SpreadSheet settings to the initial state

void reset( [object mode] );
modeobjectoptional, the reset mode; pass { sheets:true } to reset all the sheets

Example

$$("ss").config.columnCount = 5;
$$("ss").config.rowCount = 10;
$$("ss").reset();

Details

By default, the method clears only the active sheet. If you pass { sheets:true }, the method removes all the sheets and creates a single empty sheet:

$$("ss").reset({ sheets:true });
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 spreadsheet javascript library product.