Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > dragging > Dragger > wouldDeleteDraggable
metoda dragging.Dragger.wouldDeleteDraggable()
Zwraca wartość true, jeśli element draggable zostanie usunięty, gdy zostanie upuszczony w bieżącej lokalizacji.
Podpis:
protected wouldDeleteDraggable(e: PointerEvent, rootDraggable: IDraggable & IDeletable): boolean;
Parametry
Zwroty:
wartość logiczna
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 `wouldDeleteDraggable()` method, part of the `Dragger` class within the `dragging` namespace, determines if a draggable object would be deleted if released at its current position. It accepts a `PointerEvent` and a `draggable` object (implementing both `IDraggable` and `IDeletable` interfaces) as parameters. It returns a boolean value indicating whether deletion would occur. This function essentially checks if the current location would prompt to delete the draggable.\n"]]