addColumns (wbk, columns, callback);
wbk. Sets workbook value.
columns. Sets table columns.
callback. Sets handler for operation execution end.
The addColumns method adds columns to the workbook.
To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:
var source = workbookBox.getSource();////return an instance of the PP.TS.Workbook class var columns = [{ k: 10, type: "Scenario", vis: True, readOnly: False }]; //Add columns to workbook tsService.addColumns(source, columns);
After executing the example the new column named Scenario is added to the workbook table.
See also: