- SpreadJS Overview
- Getting Started
- JavaScript Frameworks
- Best Practices
-
Features
- Workbook
- Worksheet
- Rows and Columns
- Headers
- Cells
- Data Binding
- TableSheet
- GanttSheet
- ReportSheet
- Data Charts
- JSON Schema with SpreadJS
- SpreadJS File Format
- Data Validation
- Conditional Formatting
- Sort
- Group
- Formulas
- Serialization
- Keyboard Actions
- Shapes
- Floating Objects
- Barcodes
- Charts
- Sparklines
- Tables
- Pivot Table
- Slicer
- Theme
- Culture
- AI Assistant
- SpreadJS Designer
- SpreadJS Designer Component
- SpreadJS Collaboration Server
- Touch Support
- Formula Reference
- Import and Export Reference
- Frequently Used Events
- API Documentation
- Release Notes
(Showing Draft Content)
Reorder
You can arrange the order of tablesheets and worksheets together at runtime according to your own preferences. This operation can be performed by reordering the tabs of tab strip. You can even place tablesheets before and between the worksheets and vice versa.
reordertb
You can also toggle the position of the sheet by using changeSheetPosition and getSheetPosition methods. Use the getSheetPosition method to retrieve the current position of the sheet (either worksheet or tablesheet) and then use the changeSheetPosition method to change the position and reorder the sheets.
Use the following code sample to assign a new position to the tablesheet and retrieve its current position.
// Change the position of TableSheet1.
spread.changeSheetPosition("TableSheet1", 1);
// Retrieve the current position of the TableSheet1.
var position = spread.getSheetPosition("TableSheet1");