Class Info
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thông tin
Chứa dữ liệu thông tin cho cấu hình. Các thuộc tính của lớp này xác định cách thông tin hiển thị trong 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.');
Phương thức
Phương thức | Loại dữ liệu trả về | Mô tả ngắn |
setId(id) | Info | Đặt mã nhận dạng duy nhất cho mục cấu hình này. |
setText(text) | Info | Đặt văn bản cho mục nhập cấu hình này. |
Tài liệu chi tiết
setId(id)
Đặt mã nhận dạng duy nhất cho mục cấu hình này.
Tham số
Tên | Loại | Mô tả |
id | String | Mã nhận dạng cần đặt. |
Cầu thủ trả bóng
Info
– Trình tạo này, để tạo chuỗi.
setText(text)
Đặt văn bản cho mục nhập cấu hình này.
Tham số
Tên | Loại | Mô tả |
text | String | Văn bản cần đặt. |
Cầu thủ trả bóng
Info
– Trình tạo này, để tạo chuỗi.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eInfo\u003c/code\u003e object stores configuration data that influences how information is displayed in Data Studio.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the \u003ccode\u003esetId\u003c/code\u003e and \u003ccode\u003esetText\u003c/code\u003e methods to define the unique identifier and descriptive text for a configuration entry within the \u003ccode\u003eInfo\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInfo\u003c/code\u003e object uses a builder pattern, allowing developers to chain methods together for streamlined configuration.\u003c/p\u003e\n"]]],["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"],null,["# Class Info\n\nInfo\n\nContains info data for the config. Its properties determine how the info is displayed in Data\nStudio.\n\n```javascript\nconst cc = DataStudioApp.createCommunityConnector();\nconst config = cc.getConfig();\n\nconst info1 = config.newInfo().setId('info1').setText(\n 'This text gives some context on the configuration.');\n``` \n\n### Methods\n\n| Method | Return type | Brief description |\n|-----------------------------------|-------------|--------------------------------------------------|\n| [setId(id)](#setId(String)) | [Info](#) | Sets the unique ID for this configuration entry. |\n| [setText(text)](#setText(String)) | [Info](#) | Sets the text for this configuration entry. |\n\nDetailed documentation\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[Info](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Text(text)`\n\nSets the text for this configuration entry.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------|----------|------------------|\n| `text` | `String` | The text to set. |\n\n#### Return\n\n\n[Info](#) --- This builder, for chaining."]]