Оптимизируйте свои подборки Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Флажок
Содержит информацию о флажках для конфигурации. Его свойства определяют, как флажок отображается в Студии данных.
constconfig=DataStudioApp.createCommunityConnector().getConfig();constcheckbox=config.newCheckbox().setId('use_https').setName('Use Https?').setHelpText('Whether or not https should be used.').setAllowOverride(true);
Задает отображаемое имя для этой записи конфигурации.
Подробная документация
set Allow Override(allowOverride)
Включает переопределение этой записи конфигурации. Если установлено значение true , создатели источников данных имеют возможность включить это для редакторов отчетов.
Параметры
Имя
Тип
Описание
allow Override
Boolean
Можно ли переопределить эту запись конфигурации в отчетах.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCheckbox\u003c/code\u003e object configures checkbox properties for display in Data Studio.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include ID, name, help text, and override settings, all set using designated methods.\u003c/p\u003e\n"],["\u003cp\u003eMethods like \u003ccode\u003esetAllowOverride\u003c/code\u003e, \u003ccode\u003esetHelpText\u003c/code\u003e, \u003ccode\u003esetId\u003c/code\u003e, \u003ccode\u003esetIsDynamic\u003c/code\u003e, and \u003ccode\u003esetName\u003c/code\u003e allow customization of the checkbox's functionality and appearance.\u003c/p\u003e\n"],["\u003cp\u003eEach method takes specific parameters, like \u003ccode\u003eallowOverride\u003c/code\u003e (boolean), \u003ccode\u003ehelpText\u003c/code\u003e (string), and \u003ccode\u003eid\u003c/code\u003e (string), to define the checkbox's behavior and presentation.\u003c/p\u003e\n"],["\u003cp\u003eAll Checkbox methods return the Checkbox object itself, enabling chained method calls for efficient configuration.\u003c/p\u003e\n"]]],[],null,["Checkbox\n\nContains checkbox information for the config. Its properties determine how the checkbox is\ndisplayed in Data Studio.\n\n```javascript\nconst config = DataStudioApp.createCommunityConnector().getConfig();\nconst checkbox = config.newCheckbox()\n .setId('use_https')\n .setName('Use Https?')\n .setHelpText('Whether or not https should be used.')\n .setAllowOverride(true);\n``` \n\nMethods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------------------|---------------|-------------------------------------------------------|\n| [setAllowOverride(allowOverride)](#setAllowOverride(Boolean)) | [Checkbox](#) | Enables overriding for this config entry. |\n| [setHelpText(helpText)](#setHelpText(String)) | [Checkbox](#) | Sets the help text for this configuration entry. |\n| [setId(id)](#setId(String)) | [Checkbox](#) | Sets the unique ID for this configuration entry. |\n| [setIsDynamic(isDynamic)](#setIsDynamic(Boolean)) | [Checkbox](#) | Sets the dynamic status for this configuration entry. |\n| [setName(name)](#setName(String)) | [Checkbox](#) | Sets the display name 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[Checkbox](#) --- 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[Checkbox](#) --- 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[Checkbox](#) --- 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[Checkbox](#) --- 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[Checkbox](#) --- This builder, for chaining."]]