SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / visible Method
Whether the worksheet is displayed.
In This Topic
    visible Method
    In This Topic
    Sets whether the worksheet is displayed.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var returnValue; // Type: any
    returnValue = instance.visible(value);
    function visible( 
       (optional) value : boolean
    ) : any;

    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