Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > BlockDeleteJson
Events.BlockDeleteJson interface
Signature:
export interface BlockDeleteJson extends BlockBaseJson
Extends: BlockBaseJson
Properties
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."],[[["The `Events.BlockDeleteJson` interface extends the `BlockBaseJson` interface and is used to describe a block deletion event in JSON format."],["This interface includes properties like `ids`, `oldJson`, `oldXml`, `recordUndo` (optional), and `wasShadow` to capture the details of the deleted block."],["`oldJson` stores the block's state before deletion, while `oldXml` stores its XML representation."],["The `ids` property holds an array of strings representing the IDs of deleted blocks, and `wasShadow` indicates whether the deleted block was a shadow block."]]],["The `BlockDeleteJson` interface, extending `BlockBaseJson`, details the deletion of blocks. It includes `ids`, an array of strings representing the IDs of the deleted blocks. `oldJson` stores the previous state of the block, and `oldXml` holds its previous XML representation. `wasShadow` indicates if the deleted block was a shadow block. Optionally, `recordUndo` determines if the deletion should be recorded for undo functionality. These properties store key information of a deleted block.\n"]]