研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >DragTarget >DragTargetonDragExit
DragTarget.onDragExit() 方法
在带有块或气泡的光标退出此拖动目标时进行处理。
Signature:
onDragExit(_dragElement: IDraggable): void;
参数
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-21。
[null,null,["最后更新时间 (UTC):2024-08-21。"],[[["The `onDragExit` method is triggered when a dragged block or bubble leaves the area of this drag target."],["It receives the currently dragged element (block or bubble) as an argument to potentially handle the exit event."],["This method does not return any value and is used to manage behavior when a draggable item is no longer hovering over the target."]]],["The `onDragExit()` method within the `DragTarget` class manages the event when a dragged element (either a block or a bubble) leaves the drag target area. It accepts one parameter, `_dragElement`, of type `IDraggable`, which represents the block or bubble being moved. This method has no return value, as it's designed to handle the exit event and update the target state.\n"]]