แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > BlockSvg > setMovable
เมธอด BlockSvg.setMovable()
กำหนดว่าต้องย้ายบล็อกนี้ได้หรือไม่
ลายเซ็น:
setMovable(movable: boolean): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
เคลื่อนย้ายได้ |
boolean |
เป็นจริงหากย้ายได้ |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-12 UTC
[null,null,["อัปเดตล่าสุด 2024-09-12 UTC"],[[["The `setMovable` method determines if a BlockSvg object can be moved on the workspace."],["It accepts a single boolean parameter, `movable`, indicating whether the block should be movable (true) or not (false)."],["Calling this method with the appropriate argument updates the block's movability status."]]],["The `setMovable()` method, part of the `BlockSvg` class, determines if a block can be moved. It accepts a single boolean parameter, `movable`. If `movable` is set to `true`, the block becomes movable; otherwise, it is not. The method has no return value, indicated by `void`. The type of `movable` parameter should be a boolean value.\n"]]