SpreadJS Documentation
visible Method
Whether the sheet is displayed.
Sets whether the sheet is displayed.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var returnValue; // Type: Object
returnValue = instance.visible(value);
function visible( 
   value : boolean
) : Object;

Parameters

value
Whether the sheet 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 sheet object.
Example
This example hides the active sheet. The second example hides a specific sheet.
activeSheet.visible(false);
//Create a spread instance on DIV element which id is 'spreadContainer'
var spread = new GcSpread.Sheets.Spread($("#spreadContainer").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

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.