addSheet

adds a new sheet into a SpreadSheet

void addSheet( [object content,string name,boolean show] );
contentobjectoptional, an object with the sheet content
namestringoptional, the name of a new sheet
showbooleanoptional, defines whether or not a new sheet should be visible (true by default)

Example

// get content of an active sheet
var content = $$("ssheet").serialize();
 
// copy to a new sheet named "My sheet" 
$$("ssheet").addSheet(content, "My sheet");

Details

If you don't provide any arguments, SpreadSheet will create a visible empty sheet with an automatically generated name.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix ui library and page of web based spreadsheet product.