แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
blockly > dragging > Dragger > wouldDeleteDraggable
เมธอด dragging.Dragger.wouldDeleteDraggable()
แสดงค่า "จริง" หากเราจะลบรายการที่ลากได้หากวางไว้ที่ตำแหน่งปัจจุบัน
ลายเซ็น:
protected wouldDeleteDraggable(e: PointerEvent, rootDraggable: IDraggable & IDeletable): boolean;
พารามิเตอร์
การคืนสินค้า:
บูลีน
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-05-16 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-05-16 UTC"],[[["The `wouldDeleteDraggable()` method, part of Blockly's dragging system, predicts if a draggable element would be deleted if dropped at its current location."],["It takes a PointerEvent and the draggable/deletable element as input, returning true if deletion is likely and false otherwise."],["This method helps in providing visual feedback to the user during drag-and-drop interactions by indicating potential deletion before the drop action is completed."]]],["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"]]