SpreadJS Documentation
allowEditorReservedLocations Method
Whether cell editor reserved mouse locations are allowed.
Gets or sets whether cell editor reserved mouse locations are allowed.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: Object
value = instance.allowEditorReservedLocations(name);
function allowEditorReservedLocations( 
   name : boolean
) : Object;

Parameters

name
Whether cell editor reserved mouse locations are allowed.

Return Value

true if cell editor reserved mouse locations are allowed; otherwise, false.
Example
This example creates a combo box cell.
var cellType2 = new GcSpread.Sheets.ComboBoxCellType(); 
cellType2.items(["a","b","c"]); 
activeSheet.getCell(2, 2).cellType(cellType2);
activeSheet.allowEditorReservedLocations(false);
Remarks

The default value is true.

When the allowEditorReservedLocations method is set to false, all cell editors are prohibited from showing custom cursors over parts of the cell and from entering edit mode on a single click over those parts of the cell.  Button and combo cells and cells with drop-down buttons will not go into edit mode immediately, and instead the mouse selection will treat those cells as cells without buttons that can be selected.

See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.