SpreadJS Documentation
getDataSource Method
Gets the data source that populates the sheet.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: Object
value = instance.getDataSource();
function getDataSource() : Object;

Return Value

Returns the data source.
Example
This example uses the getDataSource method.
var test = [
        {"Series0":2,"Series1":1},
        {"Series0":4,"Series1":2},
        {"Series0":3,"Series1":4}
    ];
activeSheet.setDataSource(test);
alert(activeSheet.getDataSource);
See Also

Reference

Sheet type
Binding Cells

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.