Class Info
ข้อมูล
มีข้อมูลสําหรับการกําหนดค่า พร็อพเพอร์ตี้ของข้อมูลจะกําหนดวิธีแสดงข้อมูลใน Data Studio
const cc = DataStudioApp.createCommunityConnector();
const config = cc.getConfig();
const info1 = config.newInfo().setId('info1').setText(
'This text gives some context on the configuration.');
เมธอด
วิธีการ | ประเภทการแสดงผล | รายละเอียดแบบย่อ |
setId(id) | Info | ตั้งค่ารหัสที่ไม่ซ้ำกันสำหรับรายการการกําหนดค่านี้ |
setText(text) | Info | ตั้งค่าข้อความสําหรับรายการการกําหนดค่านี้ |
เอกสารประกอบโดยละเอียด
setId(id)
ตั้งค่ารหัสที่ไม่ซ้ำกันสำหรับรายการการกําหนดค่านี้
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
id | String | รหัสที่จะตั้งค่า |
รีเทิร์น
Info
— ตัวสร้างนี้สําหรับการต่อเชื่อม
setText(text)
ตั้งค่าข้อความสําหรับรายการการกําหนดค่านี้
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
text | String | ข้อความที่จะตั้งค่า |
รีเทิร์น
Info
— ตัวสร้างนี้สําหรับการต่อเชื่อม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-22 UTC
[null,null,["อัปเดตล่าสุด 2024-12-22 UTC"],[[["The `Info` object stores configuration data that influences how information is displayed in Data Studio."],["Developers can utilize the `setId` and `setText` methods to define the unique identifier and descriptive text for a configuration entry within the `Info` object."],["The `Info` object uses a builder pattern, allowing developers to chain methods together for streamlined configuration."]]],["The `Info` object, part of a Data Studio Community Connector configuration, displays information. `setId(id)` assigns a unique string ID, crucial for identifying the configuration entry. `setText(text)` sets the string text content to be displayed. Both methods return the `Info` object itself, allowing for method chaining. These actions allow for defining and displaying context within the Data Studio configuration.\n"]]