addSheet

adds a new sheet into a SpreadSheet

string 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)
stringthe name of the new sheet

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
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 ui library and page of web based spreadsheet product.