Class TextArea
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
พื้นที่ข้อความ
มีข้อมูลพื้นที่ข้อความสําหรับการกําหนดค่า พร็อพเพอร์ตี้ของฟิลด์จะกําหนดวิธีแสดงอินพุตข้อความใน Data Studio
การใช้งาน:
const cc = DataStudioApp.createCommunityConnector();
const config = cc.getConfig();
const textArea1 = config.newTextArea()
.setId('textArea1')
.setName('Search')
.setHelpText('for example, Coldplay')
.setAllowOverride(true)
.setPlaceholder('Search for an artist for all songs.');
เอกสารประกอบโดยละเอียด
setAllowOverride(allowOverride)
เปิดใช้การลบล้างสำหรับรายการการกําหนดค่านี้ หากตั้งค่าเป็น true
ผู้สร้างแหล่งข้อมูลจะมีตัวเลือกในการเปิดใช้ฟีเจอร์นี้สําหรับเครื่องมือแก้ไขรายงาน
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
allowOverride | Boolean | ลบล้างรายการการกําหนดค่านี้ในรายงานได้หรือไม่ |
รีเทิร์น
TextArea
— ตัวสร้างนี้สําหรับการต่อเชื่อม
setHelpText(helpText)
ตั้งค่าข้อความช่วยเหลือสำหรับรายการการกําหนดค่านี้
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
helpText | String | helpText ที่จะตั้งค่า |
รีเทิร์น
TextArea
— ตัวสร้างนี้สําหรับการต่อเชื่อม
setId(id)
ตั้งค่ารหัสที่ไม่ซ้ำกันสำหรับรายการการกําหนดค่านี้
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
id | String | รหัสที่จะตั้งค่า |
รีเทิร์น
TextArea
— ตัวสร้างนี้สําหรับการต่อเชื่อม
setIsDynamic(isDynamic)
ตั้งค่าสถานะแบบไดนามิกสําหรับรายการการกําหนดค่านี้
หากแก้ไขรายการการกําหนดค่าแบบไดนามิก ระบบจะล้างรายการการกําหนดค่ารายการถัดไป
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
isDynamic | Boolean | สถานะแบบไดนามิกที่จะตั้งค่า |
รีเทิร์น
TextArea
— ตัวสร้างนี้สําหรับการต่อเชื่อม
setName(name)
ตั้งค่าชื่อที่แสดงสําหรับรายการการกําหนดค่านี้
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
name | String | ชื่อที่จะตั้ง |
รีเทิร์น
TextArea
— ตัวสร้างนี้สําหรับการต่อเชื่อม
setPlaceholder(placeholder)
ตั้งค่าข้อความตัวยึดตําแหน่งสําหรับรายการการกําหนดค่านี้
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
placeholder | String | ข้อความตัวยึดตําแหน่งที่จะตั้งค่า |
รีเทิร์น
TextArea
— ตัวสร้างนี้สําหรับการต่อเชื่อม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eTextArea defines how text input is displayed in Data Studio, and its properties can be customized using various methods.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use methods like \u003ccode\u003esetAllowOverride\u003c/code\u003e, \u003ccode\u003esetHelpText\u003c/code\u003e, \u003ccode\u003esetId\u003c/code\u003e, \u003ccode\u003esetIsDynamic\u003c/code\u003e, \u003ccode\u003esetName\u003c/code\u003e, and \u003ccode\u003esetPlaceholder\u003c/code\u003e to configure the TextArea.\u003c/p\u003e\n"],["\u003cp\u003eEach method allows for customization, like enabling overrides, setting help text, defining IDs, setting dynamic status, naming the field, and adding placeholder text.\u003c/p\u003e\n"],["\u003cp\u003eAll configuration methods return the TextArea builder, allowing for chained configurations in a fluent manner.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eTextArea\u003c/code\u003e, developers can create interactive text input fields in Data Studio for users to input data.\u003c/p\u003e\n"]]],[],null,["# Class TextArea\n\nTextArea\n\nContains text area information for the config. Its properties determine how the text input is\ndisplayed in Data Studio.\n\nUsage:\n\n```javascript\nconst cc = DataStudioApp.createCommunityConnector();\nconst config = cc.getConfig();\n\nconst textArea1 = config.newTextArea()\n .setId('textArea1')\n .setName('Search')\n .setHelpText('for example, Coldplay')\n .setAllowOverride(true)\n .setPlaceholder('Search for an artist for all songs.');\n``` \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------------------|---------------|---------------------------------------------------------|\n| [setAllowOverride(allowOverride)](#setAllowOverride(Boolean)) | [TextArea](#) | Enables overriding for this config entry. |\n| [setHelpText(helpText)](#setHelpText(String)) | [TextArea](#) | Sets the help text for this configuration entry. |\n| [setId(id)](#setId(String)) | [TextArea](#) | Sets the unique ID for this configuration entry. |\n| [setIsDynamic(isDynamic)](#setIsDynamic(Boolean)) | [TextArea](#) | Sets the dynamic status for this configuration entry. |\n| [setName(name)](#setName(String)) | [TextArea](#) | Sets the display name for this configuration entry. |\n| [setPlaceholder(placeholder)](#setPlaceholder(String)) | [TextArea](#) | Sets the placeholder text for this configuration entry. |\n\nDetailed documentation\n----------------------\n\n### `set``Allow``Override(allowOverride)`\n\nEnables overriding for this config entry. If set to `true`, data source creators have the\noption to enable this for report editors.\n\n#### Parameters\n\n| Name | Type | Description |\n|-------------------|-----------|----------------------------------------------------------------|\n| `allow``Override` | `Boolean` | Whether or not this config entry can be overridden in reports. |\n\n#### Return\n\n\n[TextArea](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Help``Text(helpText)`\n\nSets the help text for this configuration entry.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------------|----------|----------------------|\n| `help``Text` | `String` | The helpText to set. |\n\n#### Return\n\n\n[TextArea](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Id(id)`\n\nSets the unique ID for this configuration entry.\n\n#### Parameters\n\n| Name | Type | Description |\n|------|----------|----------------|\n| `id` | `String` | The ID to set. |\n\n#### Return\n\n\n[TextArea](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Is``Dynamic(isDynamic)`\n\nSets the dynamic status for this configuration entry.\n\nIf a dynamic configuration entry is modified, subsequent configuration entries are cleared.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------------|-----------|----------------------------|\n| `is``Dynamic` | `Boolean` | The dynamic status to set. |\n\n#### Return\n\n\n[TextArea](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Name(name)`\n\nSets the display name for this configuration entry.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------|----------|------------------|\n| `name` | `String` | The name to set. |\n\n#### Return\n\n\n[TextArea](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Placeholder(placeholder)`\n\nSets the placeholder text for this configuration entry.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------------|----------|------------------------------|\n| `placeholder` | `String` | The placeholder text to set. |\n\n#### Return\n\n\n[TextArea](#) --- This builder, for chaining."]]