SpreadJS Documentation
visible Method
GC.Spread.Sheets Namespace > Worksheet type : visible Method
Whether the worksheet is displayed.
Sets whether the worksheet is displayed.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var returnValue; // Type: Object
returnValue = instance.visible(value);
function visible( 
   value : boolean
) : Object;

Parameters

value
Whether the worksheet is displayed.

Return Value

If you call this function without a parameter, it returns a boolean indicating whether the sheet is visible; otherwise, it returns the current worksheet object.
Example
This example hides the active sheet. The second example hides a specific sheet.
activeSheet.visible(false);
var spread = new GC.Spread.Sheets.Workbook($("#ss").get(0),{sheetCount:3});
spread.sheets[1].visible(false);
Remarks

The default value is true.

If you hide an active sheet, the next sheet becomes active.

See Also

Reference

Worksheet type