blockly > IDragTarget > onDragExit
Méthode IDragTarget.onDragExit()
Gère le moment où un curseur avec un bloc ou une bulle quitte cette cible de déplacement.
Signature :
onDragExit(dragElement: IDraggable): void;
Paramètres
Paramètre |
Type |
Description |
dragElement |
IDraggable |
Bloc ou bulle en cours de déplacement. |
Renvoie :
vide
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/09/12 (UTC).
[null,null,["Dernière mise à jour le 2024/09/12 (UTC)."],[[["`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"]]