blockly > Events > setRecordUndo

Events.setRecordUndo() function

Sets whether events should be added to the undo stack.

Signature:

export declare function setRecordUndo(newValue: boolean): void;

Parameters

Parameter Type Description
newValue boolean True if events should be added to the undo stack.

Returns:

void