Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > DragTarget > onDragExit
Metode DragTarget.onDragExit()
Menangani saat kursor dengan blok atau balon keluar dari target tarik ini.
Tanda Tangan:
onDragExit(_dragElement: IDraggable): void;
Parameter
Parameter |
Jenis |
Deskripsi |
_dragElement |
IDraggable |
Blok atau balon yang sedang ditarik. |
Hasil:
void
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-21 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-21 UTC."],[[["The `onDragExit` method is triggered when a dragged block or bubble leaves the area of this drag target."],["It receives the currently dragged element (block or bubble) as an argument to potentially handle the exit event."],["This method does not return any value and is used to manage behavior when a draggable item is no longer hovering over the target."]]],["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"]]