ui.Checkbox.setDisabled
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตั้งค่าว่าจะปิดใช้ช่องทำเครื่องหมายหรือไม่
แสดงช่องทำเครื่องหมายนี้
การใช้งาน | การคืนสินค้า |
---|
Checkbox.setDisabled(disabled) | ui.Checkbox |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.checkbox | ui.Checkbox | อินสแตนซ์ ui.Checkbox |
disabled | บูลีน | ช่องทำเครื่องหมายปิดใช้อยู่หรือไม่ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThe \u003ccode\u003esetDisabled\u003c/code\u003e method allows you to enable or disable a checkbox element.\u003c/p\u003e\n"],["\u003cp\u003eThis method accepts a boolean value (\u003ccode\u003edisabled\u003c/code\u003e) indicating whether the checkbox should be disabled.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003esetDisabled\u003c/code\u003e returns the \u003ccode\u003eui.Checkbox\u003c/code\u003e instance, enabling method chaining.\u003c/p\u003e\n"]]],["The `Checkbox.setDisabled(disabled)` method sets the disabled state of a checkbox. It accepts a boolean argument, `disabled`, which determines if the checkbox is enabled or disabled. The method modifies the `ui.Checkbox` instance it's called on and returns the same `ui.Checkbox` instance. The `this` keyword in this method refers to the `ui.Checkbox` instance.\n"],null,["# ui.Checkbox.setDisabled\n\n\u003cbr /\u003e\n\nSets whether the checkbox is disabled.\n\n\u003cbr /\u003e\n\nReturns this checkbox.\n\n| Usage | Returns |\n|----------------------------------|-------------|\n| Checkbox.setDisabled`(disabled)` | ui.Checkbox |\n\n| Argument | Type | Details |\n|---------------------|-------------|-----------------------------------|\n| this: `ui.checkbox` | ui.Checkbox | The ui.Checkbox instance. |\n| `disabled` | Boolean | Whether the checkbox is disabled. |"]]