Zadbaj o dobrą organizację dzięki kolekcji Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Tekstobszar
Zawiera informacje o obszarze tekstowym w konfiguracji. Jej właściwości określają sposób wyświetlania danych tekstowych w Studiu danych.
Sposób użycia:
constcc=DataStudioApp.createCommunityConnector();constconfig=cc.getConfig();consttextArea1=config.newTextArea().setId('textArea1').setName('Search').setHelpText('for example, Coldplay').setAllowOverride(true).setPlaceholder('Search for an artist for all songs.');
Ustawia tekst zastępczy dla tego wpisu konfiguracji.
Szczegółowa dokumentacja
setAllowOverride(allowOverride)
Umożliwia zastąpienie tego wpisu konfiguracji. Jeśli ustawisz tę opcję na true, twórcy źródeł danych będą mogli włączyć tę opcję dla edytorów raportów.
Parametry
Nazwa
Typ
Opis
allowOverride
Boolean
Określa, czy ten wpis konfiguracji może być zastąpiony w raportach.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eTextArea defines how text input is displayed in Data Studio, and its properties can be customized using various methods.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use methods like \u003ccode\u003esetAllowOverride\u003c/code\u003e, \u003ccode\u003esetHelpText\u003c/code\u003e, \u003ccode\u003esetId\u003c/code\u003e, \u003ccode\u003esetIsDynamic\u003c/code\u003e, \u003ccode\u003esetName\u003c/code\u003e, and \u003ccode\u003esetPlaceholder\u003c/code\u003e to configure the TextArea.\u003c/p\u003e\n"],["\u003cp\u003eEach method allows for customization, like enabling overrides, setting help text, defining IDs, setting dynamic status, naming the field, and adding placeholder text.\u003c/p\u003e\n"],["\u003cp\u003eAll configuration methods return the TextArea builder, allowing for chained configurations in a fluent manner.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eTextArea\u003c/code\u003e, developers can create interactive text input fields in Data Studio for users to input data.\u003c/p\u003e\n"]]],[],null,["TextArea\n\nContains text area information for the config. Its properties determine how the text input is\ndisplayed in Data Studio.\n\nUsage:\n\n```javascript\nconst cc = DataStudioApp.createCommunityConnector();\nconst config = cc.getConfig();\n\nconst textArea1 = config.newTextArea()\n .setId('textArea1')\n .setName('Search')\n .setHelpText('for example, Coldplay')\n .setAllowOverride(true)\n .setPlaceholder('Search for an artist for all songs.');\n``` \n\nMethods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------------------|---------------|---------------------------------------------------------|\n| [setAllowOverride(allowOverride)](#setAllowOverride(Boolean)) | [TextArea](#) | Enables overriding for this config entry. |\n| [setHelpText(helpText)](#setHelpText(String)) | [TextArea](#) | Sets the help text for this configuration entry. |\n| [setId(id)](#setId(String)) | [TextArea](#) | Sets the unique ID for this configuration entry. |\n| [setIsDynamic(isDynamic)](#setIsDynamic(Boolean)) | [TextArea](#) | Sets the dynamic status for this configuration entry. |\n| [setName(name)](#setName(String)) | [TextArea](#) | Sets the display name for this configuration entry. |\n| [setPlaceholder(placeholder)](#setPlaceholder(String)) | [TextArea](#) | Sets the placeholder text for this configuration entry. |\n\nDetailed documentation \n\n`set``Allow``Override(allowOverride)` \nEnables overriding for this config entry. If set to `true`, data source creators have the\noption to enable this for report editors.\n\nParameters\n\n| Name | Type | Description |\n|-------------------|-----------|----------------------------------------------------------------|\n| `allow``Override` | `Boolean` | Whether or not this config entry can be overridden in reports. |\n\nReturn\n\n\n[TextArea](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n`set``Help``Text(helpText)` \nSets the help text for this configuration entry.\n\nParameters\n\n| Name | Type | Description |\n|--------------|----------|----------------------|\n| `help``Text` | `String` | The helpText to set. |\n\nReturn\n\n\n[TextArea](#) --- This builder, for chaining.\n\n*** ** * ** ***\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[TextArea](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n`set``Is``Dynamic(isDynamic)` \nSets the dynamic status for this configuration entry.\n\nIf a dynamic configuration entry is modified, subsequent configuration entries are cleared.\n\nParameters\n\n| Name | Type | Description |\n|---------------|-----------|----------------------------|\n| `is``Dynamic` | `Boolean` | The dynamic status to set. |\n\nReturn\n\n\n[TextArea](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n`set``Name(name)` \nSets the display name for this configuration entry.\n\nParameters\n\n| Name | Type | Description |\n|--------|----------|------------------|\n| `name` | `String` | The name to set. |\n\nReturn\n\n\n[TextArea](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n`set``Placeholder(placeholder)` \nSets the placeholder text for this configuration entry.\n\nParameters\n\n| Name | Type | Description |\n|---------------|----------|------------------------------|\n| `placeholder` | `String` | The placeholder text to set. |\n\nReturn\n\n\n[TextArea](#) --- This builder, for chaining."]]