Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > BlockDelete > oldJson
Events.BlockDelete.oldJson property
The JSON respresentation of the deleted block(s).
Signature:
oldJson?: blocks.State;
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."],[[["\u003cp\u003e\u003ccode\u003eoldJson\u003c/code\u003e stores the JSON representation of the block(s) before deletion, providing a snapshot of their previous state.\u003c/p\u003e\n"],["\u003cp\u003eThis property is optional and of type \u003ccode\u003eblocks.State\u003c/code\u003e, which defines the structure for storing block state information.\u003c/p\u003e\n"],["\u003cp\u003ePrimarily used within the Blockly Events system for undo/redo functionality and potentially for logging or analyzing block deletions.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [Events](./blockly.events_namespace.md) \\\u003e [BlockDelete](./blockly.events_namespace.blockdelete_class.md) \\\u003e [oldJson](./blockly.events_namespace.blockdelete_class.oldjson_property.md)\n\nEvents.BlockDelete.oldJson property\n-----------------------------------\n\nThe JSON respresentation of the deleted block(s).\n\n**Signature:** \n\n oldJson?: blocks.State;"]]