Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > BlockMoveJson > recordUndo
Events.BlockMoveJson.recordUndo property
Signature:
recordUndo?: boolean;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["`recordUndo` is a property of the `BlockMoveJson` interface within Blockly's Events namespace."],["This optional boolean property determines if the block move event should be recorded in the undo stack, allowing users to reverse the action."],["By default, if `recordUndo` is not explicitly set, block move events will be recorded for undo functionality."]]],["The `recordUndo` property, found within the `BlockMoveJson` interface of the Blockly Events namespace, is a boolean value. This property indicates whether a block movement event should be recorded for undo/redo functionality. Its optional nature suggests that the system might not always track block movement history. When set to `true`, the block's move will be recorded for potential undo operations.\n"]]