Class Info
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
-
The
Infoobject stores configuration data that influences how information is displayed in Data Studio. -
Developers can utilize the
setIdandsetTextmethods to define the unique identifier and descriptive text for a configuration entry within theInfoobject. -
The
Infoobject uses a builder pattern, allowing developers to chain methods together for streamlined configuration.
Contains info data for the config. Its properties determine how the info is displayed in Data Studio.
constcc=DataStudioApp.createCommunityConnector(); constconfig=cc.getConfig(); constinfo1=config.newInfo().setId('info1').setText( 'This text gives some context on the configuration.');
Methods
| Method | Return type | Brief description |
|---|---|---|
set | Info | Sets the unique ID for this configuration entry. |
set | Info | Sets the text for this configuration entry. |
Detailed documentation
setId(id)
Sets the unique ID for this configuration entry.
Parameters
| Name | Type | Description |
|---|---|---|
id | String | The ID to set. |
Return
Info — This builder, for chaining.
setText(text)
Sets the text for this configuration entry.
Parameters
| Name | Type | Description |
|---|---|---|
text | String | The text to set. |
Return
Info — This builder, for chaining.