Class Info
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: 2024-12-22 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]