SpreadJS has a customizable worksheet tabstrip, and each element can be controlled in code.
Use SpreadJS's options properties to control the Tab Strip's visibility and the behavior of its elements:
Use the tabStripVisible option to control the visibility of the entire Tab Strip :
var spread = GC.Spread.Sheets.findControl(document.getElementById('ss'));
spread.options.tabStripVisible = false;
Set the tabNavigationVisible option to false to hide the navigation arrow buttons which are visible by default.
spread.options.tabNavigationVisible = false; // false: hide, true: show
Allow or prevent the user from renaming the sheets by setting the tabEditable option (boolean)
spread.options.tabEditable = true;
Allow or prevent the user from reordering the sheets using the allowSheetReorder option (boolean)
spread.options.allowSheetReorder = true;
Change the ActiveSheets tab's color by setting sheetTabColor which takes a color name string: 'red', 'green'.
var sheet = spread.getActiveSheet();
sheet.options.sheetTabColor = 'red';
Allow or prevent the user from adding sheets to the workbook by using newTabVisible option which controls the visibility of the + circled button (visible by default):
spread.options.newTabVisible = false;
The tabStripRatio option is a percentage value (0.x) that specifies how much of the horizontal space will be allocated to the tab strip. The rest of the horizontal area (1 - 0.x) will allocated to the horizontal scrollbar.
spread.options.tabStripRatio = 0.6;
Change the tab strip position relative to the workbook by using tabStripPosition. There are four kinds of directions:
When the tab strip is at the left or right of the workbook, user could scroll the tabs by using mousewheel.
spread.options.tabStripPosition = GC.Spread.Sheets.TabStripPosition.left;
When the tab strip is at the left or right of the workbook, user could use tabStripWidth to customize its width. It could be useful for the long sheet name. The default and the minimum is 80.
spread.options.tabStripWidth = 200;
Allow or prevent the user from opening the all sheets dialog by using the allSheetsListVisible option, which controls the visibility of the "≡" button (auto by default):
spread.options.allSheetsListVisible = GC.Spread.Sheets.AllSheetsListVisibility.auto;
Submit and view feedback for