แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > ธีม > setComponentStyle
เมธอด Theme.setComponentStyle()
กำหนดค่าคอมโพเนนต์ UI ของ Blockly ที่เฉพาะเจาะจงด้วยค่ารูปแบบ
ลายเซ็น:
setComponentStyle(componentName: string, styleValue: any): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
componentName |
สตริง |
ชื่อของคอมโพเนนต์ |
styleValue |
ใดๆ |
ค่ารูปแบบ |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-10-15 UTC
[null,null,["อัปเดตล่าสุด 2024-10-15 UTC"],[[["The `Theme.setComponentStyle()` method allows you to configure the style of individual Blockly UI components."],["It takes two arguments: `componentName` (string) which identifies the specific component, and `styleValue` (any) which sets the desired style."],["Calling this method applies the specified style value to the designated Blockly UI component."]]],[]]