Restez organisé à l'aide des collections Enregistrez et classez les contenus selon vos préférences.
Infos
Contient des données d'informations pour la configuration. Ses propriétés déterminent la façon dont les informations sont affichées dans Data Studio.
constcc=DataStudioApp.createCommunityConnector();constconfig=cc.getConfig();constinfo1=config.newInfo().setId('info1').setText('This text gives some context on the configuration.');
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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,["Info\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\nMethods\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`set``Id(id)` \nSets the unique ID for this configuration entry.\n\nParameters\n\n| Name | Type | Description |\n|------|----------|----------------|\n| `id` | `String` | The ID to set. |\n\nReturn\n\n\n[Info](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n`set``Text(text)` \nSets the text for this configuration entry.\n\nParameters\n\n| Name | Type | Description |\n|--------|----------|------------------|\n| `text` | `String` | The text to set. |\n\nReturn\n\n\n[Info](#) --- This builder, for chaining."]]