จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
blockly > เหตุการณ์ > ThemeChange > (เครื่องมือสร้าง)
Events.ThemeChange.(constructor)
สร้างอินสแตนซ์ใหม่ของคลาส ThemeChange
ลายเซ็น:
constructor(opt_themeName?: string, opt_workspaceId?: string);
พารามิเตอร์
| พารามิเตอร์ |
ประเภท |
คำอธิบาย |
| opt_themeName |
สตริง |
(ไม่บังคับ) ชื่อธีม ไม่ได้กำหนดสำหรับเหตุการณ์ว่าง |
| opt_workspaceId |
สตริง |
(ไม่บังคับ) ตัวระบุพื้นที่ทำงานสำหรับกิจกรรมนี้ กิจกรรม ไม่ได้กำหนดสำหรับเหตุการณ์ว่าง |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],["The `ThemeChange` class constructor creates a new instance, representing a theme change event. It accepts two optional string parameters: `opt_themeName`, which specifies the new theme's name (undefined for a blank event), and `opt_workspaceId`, which identifies the workspace associated with the event (also undefined for a blank event). The constructor's function is to initialize a ThemeChange event.\n"]]