[]
        
(Showing Draft Content)

Create Tables

You can display data in a table in the control. The table has options to filter or sort the data.




The default table style is medium2.


SpreadJS provides the following methods for different kinds of customizations:

The row count for the table includes the header and footer rows. Tables support frozen rows and columns, sparklines, and cell spans.


The following code sample creates a table and sets the table style.

activeSheet.tables.add("Table1", 0, 0, 3, 3, GC.Spread.Sheets.Tables.TableThemes.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");