קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > dragging > Dragger > wouldDeleteDraggable
השיטה dragging.Dragger.wouldDeleteDraggable()
הפונקציה מחזירה את הערך True אם היינו מוחקים את האובייקט שניתן לגרירה אם הוא היה משוחרר במיקום הנוכחי.
Signature:
protected wouldDeleteDraggable(e: PointerEvent, rootDraggable: IDraggable & IDeletable): boolean;
פרמטרים
החזרים:
בוליאני
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 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"]]