SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / isSelected Method
The selected state of the worksheet.
In This Topic
    isSelected Method
    In This Topic
    Gets or sets the selected state of the worksheet.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: any
    value = instance.isSelected(selectedState);
    function isSelected( 
       (optional) selectedState : boolean
    ) : any;

    Parameters

    selectedState
    The selected state of the worksheet.

    Return Value

    If no selectedState is set, returns the worksheet selected state; otherwise, returns the worksheet.
    Example
    spread.sheets[0].isSelected();
    spread.sheets[1].isSelected(true);
    See Also

    Reference

    Worksheet type