blockly > IDragTarget > onDragExit
Metoda IDragTarget.onDragExit()
Obsługa, gdy kursor z klockiem lub dymkiem opuści ten element przeciągania.
Podpis:
onDragExit(dragElement: IDraggable): void;
Parametry
Parametr |
Typ |
Opis |
dragElement |
IDraggable |
Przeciągany blok lub dymek. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-12 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]