SpreadJS Documentation
allowUndo Method
Whether to allow the user to undo edits.
Gets or sets whether to allow the user to undo edit operations.
Syntax
var instance = new GcSpread.Sheets.Spread(host, options);
var returnValue; // Type: Object
returnValue = instance.allowUndo(value);
function allowUndo( 
   value : boolean
) : Object;

Parameters

value
Whether to allow the user to undo edits.

Return Value

true if the user can undo edits; otherwise, false.
Example
This example executes a command that performs a specified action.
spread.allowUndo(true);
var group = new GcSpread.Sheets.UndoRedo.GroupExtent(3,5);
var action = new GcSpread.Sheets.UndoRedo.RowGroupUndoAction(sheet,group);
spread.doCommand(action);
Remarks
The default value is true.
See Also

Reference

Spread type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.