Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > BlockDragJson > blocks
Events.BlockDragJson.blocks property
Signature:
blocks?: Block[];
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\u003eThe \u003ccode\u003eblocks\u003c/code\u003e property of the \u003ccode\u003eBlockDragJson\u003c/code\u003e interface is an optional array of \u003ccode\u003eBlock\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThis property represents the blocks involved in a drag event in Blockly, possibly containing the dragged block and any blocks connected to it.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eblocks\u003c/code\u003e property is serialized as part of the JSON representation of a \u003ccode\u003eBlockDragJson\u003c/code\u003e event, which can be used for undo/redo or other operations.\u003c/p\u003e\n"]]],["The `blocks` property within the `Events.BlockDragJson` interface is defined. It is an optional property, indicated by the `?`. It is designed to hold an array of `Block` objects. This signifies that, if present, the `blocks` property will contain a collection of blocks that are part of a drag event in Blockly.\n"],null,["[blockly](./blockly.md) \\\u003e [Events](./blockly.events_namespace.md) \\\u003e [BlockDragJson](./blockly.events_namespace.blockdragjson_interface.md) \\\u003e [blocks](./blockly.events_namespace.blockdragjson_interface.blocks_propertysignature.md)\n\nEvents.BlockDragJson.blocks property\n------------------------------------\n\n**Signature:** \n\n blocks?: Block[];"]]