แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > FieldLabelSerializable > (เครื่องมือสร้าง)
FieldLabelSerializable.(constructor)
สร้างอินสแตนซ์ใหม่ของคลาส FieldLabelSerializable
ลายเซ็น:
constructor(value?: string, textClass?: string, config?: FieldLabelConfig);
พารามิเตอร์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-10-15 UTC
[null,null,["อัปเดตล่าสุด 2024-10-15 UTC"],[[["The `FieldLabelSerializable` constructor creates a new field instance for displaying non-editable text."],["It accepts optional parameters for initial value (`value`), CSS class (`textClass`), and field configuration (`config`)."],["The `value` parameter sets the initial text content, defaulting to an empty string if not provided."],["`config` allows further customization using properties defined in the FieldLabelConfig interface."]]],["The `FieldLabelSerializable` class constructor creates a new field instance. It accepts three optional parameters: `value` (initial field value, defaulting to an empty string), `textClass` (CSS class for the field's text), and `config` (a map of configuration options). The `config` parameter's supported properties are detailed in the field creation documentation. These parameters are used to initialize the properties of the created field.\n"]]