SpreadJS Documentation
CellBindingSource Method
GC.Spread.Sheets Namespace > Bindings type : CellBindingSource Method
The data source.
Represents a source for cell binding.
Syntax
var value; // Type: any
value = GC.Spread.Sheets.Bindings.CellBindingSource(source);
function CellBindingSource( 
   source : Object
) : any;

Parameters

source
The data source.
Example
var person = {name: "Wang feng", age: 25, address: {postcode: "710075"}};
var source = new GC.Spread.Sheets.Bindings.CellBindingSource(person);
activeSheet.setBindingPath(0, 0, "name");
activeSheet.setBindingPath(1, 1, "age");
activeSheet.setBindingPath(3, 3, "address.postcode");
activeSheet.setDataSource(source);
See Also

Reference

Bindings type