SpreadJS Documentation
fromJSON Method
The spreadsheet data from deserialization.
Loads the object state from the specified JSON string.
Syntax
var instance = new GcSpread.Sheets.Spread(host, options);
var value; // Type: any
value = instance.fromJSON(spreadData);
function fromJSON( 
   spreadData : Object
) : any;

Parameters

spreadData
The spreadsheet data from deserialization.
Example
This example uses the fromJSON method.
activeSheet.getCell(0,0).value(123);
var jsonStr = null;
//export
jsonStr = JSON.stringify(spread.toJSON(false));
//import
spread.fromJSON(JSON.parse(jsonStr));
alert(jsonStr);
See Also

Reference

Spread type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.