SpreadJS Documentation
getTables Method
Gets the sheet tables.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: Array
value = instance.getTables();
function getTables() : Array;

Return Value

The GcSpread.Sheets.SheetTable array of table instances. The array is never null.
Example
This example gets the tables.
activeSheet.addTable("Table1", 0, 0, 3, 3, GcSpread.Sheets.TableStyles.dark1());
activeSheet.addTable("Table2", 4, 0, 3, 3, GcSpread.Sheets.TableStyles.medium1());
var tables = activeSheet.getTables();
for (var i = 0; i < tables.length; i++) {
    alert(tables[i].name());
}
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.