When the sheet count hits a specified number, set the Spread Controls Options newTabVisible to False, so now the special tab to let users insert new sheets will no longer appear.
Steps to Complete:
1. Bind the SheetChanged event to the Spread Instance
2. Get the sheet count
3. Set NewTabVisible according to desired sheet limit
Step 1: Bind the SheetChanged event to the Spread Instance
Step 2: Get the sheet count
Step 3: Set newTabVisible according to desired sheet limit
For example, if your sheet limit is 3, set it so that if the sheet count is greater than or equal to 3 set the newTabVisible option to False. Otherwise, set the newTabVisible to True.
Notice, after adding this your SpreadJS instance will not allow a user to add more than 3 sheets.