Class Info
Informacje
Zawiera dane konfiguracji. Jej właściwości określają sposób wyświetlania informacji w Studiu danych.
const cc = DataStudioApp.createCommunityConnector();
const config = cc.getConfig();
const info1 = config.newInfo().setId('info1').setText(
'This text gives some context on the configuration.');
Metody
Metoda | Zwracany typ | Krótki opis |
setId(id) | Info | Ustawia unikalny identyfikator tego wpisu konfiguracji. |
setText(text) | Info | Ustawia tekst dla tego wpisu konfiguracji. |
Szczegółowa dokumentacja
setId(id)
Ustawia unikalny identyfikator tego wpisu konfiguracji.
Parametry
Nazwa | Typ | Opis |
id | String | Identyfikator do ustawienia. |
Powrót
Info
– ten kreator do łańcuchowania.
setText(text)
Ustawia tekst dla tego wpisu konfiguracji.
Parametry
Nazwa | Typ | Opis |
text | String | Tekst do ustawienia. |
Powrót
Info
– ten kreator do łańcuchowania.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-12-22 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]