Stay organized with collections
Save and categorize content based on your preferences.
blockly > blockRendering > PathObject > updateDraggingDelete
blockRendering.PathObject.updateDraggingDelete() method
Add or remove styling showing that a block is dragged over a delete area.
Signature:
updateDraggingDelete(enable: boolean): void;
Parameters
Parameter |
Type |
Description |
enable |
boolean |
True if the block is being dragged over a delete area, false otherwise. |
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."],[[["The `updateDraggingDelete` method visually indicates whether a block is being dragged over a delete area by applying or removing styling."],["It accepts a boolean parameter `enable`, which is true when the block is over a delete area and false otherwise."],["This method belongs to the `PathObject` class within the `blockRendering` namespace in Blockly."],["Calling `updateDraggingDelete` with true highlights the block as if it's about to be deleted, while calling it with false removes this highlighting."]]],[]]