แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > blockRendering > PathObject > updateDisabled_
เมธอด blockRendering.PathObject.updateDisabled_()
อัปเดตรูปลักษณ์ของการบล็อกเพื่อแสดงสถานะปิดใช้
ลายเซ็น:
protected updateDisabled_(disabled: boolean): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
ปิดอยู่ |
boolean |
จริงหากปิดใช้ |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-21 UTC
[null,null,["อัปเดตล่าสุด 2024-08-21 UTC"],[[["The `updateDisabled_` method is used to visually represent the disabled state of a block within Blockly's rendering system."],["It takes a boolean parameter indicating whether the block should appear disabled (`true`) or enabled (`false`)."],["By calling this method with the appropriate disabled state, developers can ensure that the block's visual appearance accurately reflects its functionality."]]],["The `updateDisabled_()` method, part of the `PathObject` class within the `blockRendering` namespace, modifies a block's visual appearance to indicate a disabled state. It accepts a single boolean parameter, `disabled`. If `disabled` is true, the method visually updates the block to reflect that it is disabled. It returns nothing.\n"]]