SpreadJS Documentation
moveTable Method
The table instance to move.
The new row index.
The new column index.
Changes the table location.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: Sheet
value = instance.moveTable(table, row, column);
function moveTable( 
   table : SheetTable,
   row : number,
   column : number
) : Sheet;

Parameters

table
The table instance to move.
row
The new row index.
column
The new column index.

Return Value

The sheet that contains the table that was moved.
Example
This example uses the moveTable method.
activeSheet.addTable("Table1", 0, 0, 3, 3, GcSpread.Sheets.TableStyles.dark1());
activeSheet.getCell(0,0).text("Name");
activeSheet.getCell(0,1).text("Value");
activeSheet.getCell(0,2).text("T/F");
activeSheet.getCell(1,0).text("AW");
activeSheet.getCell(1,1).text("5");
activeSheet.getCell(1,2).text("T");

$("#button1").click(function () {
var table  = activeSheet.findTable(0,0);
activeSheet.moveTable(table, 3, 3);
    });
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.