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