研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >IDragTarget >IDragTargetonDragExit
IDragTarget.onDragExit() 方法
在带有块或气泡的光标退出此拖动目标时进行处理。
Signature:
onDragExit(dragElement: IDraggable): void;
参数
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-12。
[null,null,["最后更新时间 (UTC):2024-09-12。"],[[["`onDragExit()` is a method within the `IDragTarget` interface that manages behavior when a dragged element (block or bubble) exits the target area."],["The method takes one argument: `dragElement` of type `IDraggable`, representing the currently dragged item."],["This method is responsible for defining actions performed when an element is no longer hovering over the drag target."]]],["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"]]