GcSpread.Sheets Namespace > Sheet type : allowEditorReservedLocations Method |
var instance = new GcSpread.Sheets.Sheet(name); var value; // Type: Object value = instance.allowEditorReservedLocations(name);
function allowEditorReservedLocations( name : boolean ) : Object;
true
if cell editor reserved mouse locations are allowed; otherwise, false
.var cellType2 = new GcSpread.Sheets.ComboBoxCellType(); cellType2.items(["a","b","c"]); activeSheet.getCell(2, 2).cellType(cellType2); activeSheet.allowEditorReservedLocations(false);
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.