Stay organized with collections
Save and categorize content based on your preferences.
blockly > IDragTarget > onDragExit
IDragTarget.onDragExit() method
Handles when a cursor with a block or bubble exits this drag target.
Signature:
onDragExit(dragElement: IDraggable): void;
Parameters
Parameter |
Type |
Description |
dragElement |
IDraggable |
The block or bubble currently being dragged. |
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."],[[["\u003cp\u003e\u003ccode\u003eonDragExit()\u003c/code\u003e is a method within the \u003ccode\u003eIDragTarget\u003c/code\u003e interface that manages behavior when a dragged element (block or bubble) exits the target area.\u003c/p\u003e\n"],["\u003cp\u003eThe method takes one argument: \u003ccode\u003edragElement\u003c/code\u003e of type \u003ccode\u003eIDraggable\u003c/code\u003e, representing the currently dragged item.\u003c/p\u003e\n"],["\u003cp\u003eThis method is responsible for defining actions performed when an element is no longer hovering over the drag target.\u003c/p\u003e\n"]]],["The `onDragExit()` method, part of the `IDragTarget` interface, is triggered when a dragged block or bubble leaves a specific target area. It takes one parameter, `dragElement`, which represents the `IDraggable` object (either a block or bubble) being moved. The method's purpose is to manage actions when the dragged element exits the target. This method returns void.\n"],null,["[blockly](./blockly.md) \\\u003e [IDragTarget](./blockly.idragtarget_interface.md) \\\u003e [onDragExit](./blockly.idragtarget_interface.ondragexit_1_methodsignature.md)\n\nIDragTarget.onDragExit() method\n-------------------------------\n\nHandles when a cursor with a block or bubble exits this drag target.\n\n**Signature:** \n\n onDragExit(dragElement: IDraggable): void;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-------------|-------------------------------------------------|----------------------------------------------|\n| dragElement | [IDraggable](./blockly.idraggable_interface.md) | The block or bubble currently being dragged. |\n\n**Returns:**\n\nvoid"]]