Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > DragTarget > onDragExit
Metoda DragTarget.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: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["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"]]