SpreadJS Documentation
selectionUnit Method
GC.Spread.Sheets Namespace > Worksheet type : selectionUnit Method
Whether users can select cells, rows, or columns.
Gets or sets whether users can select cells, rows, or columns on a sheet.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var returnValue; // Type: any
returnValue = instance.selectionUnit(value);
function selectionUnit( 
   value : SelectionUnit
) : any;

Parameters

value
Whether users can select cells, rows, or columns.

Return Value

If no value is set, returns the selection unit setting; otherwise, returns the sheet.
Example
This example uses the selectionUnit method.
activeSheet.selectionUnit(GC.Spread.Sheets.SelectionUnit.row);
activeSheet.selectionPolicy(GC.Spread.Sheets.SelectionPolicy.range);
Remarks
The default value is SelectionUnit.cell.
See Also

Reference

Worksheet type