Stay organized with collections
Save and categorize content based on your preferences.
blockly > ContextMenuItems > registerUndo
Option to undo previous action.
Signature:
export declare function registerUndo(): void;
Returns:
void
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."],[[["Registers a function that enables the \"Undo\" option in the context menu, allowing users to reverse their last action."],["This function does not accept any arguments and does not return any value."],["It is specifically associated with the `ContextMenuItems` namespace within the Blockly library."]]],["The `ContextMenuItems.registerUndo()` function provides the functionality to undo the previous action. It is a function without any parameters and returns nothing (void). Its primary action is registering the capability for users to revert to a previous state or action within the system. This function is a key component for supporting undo operations.\n"]]