constcc=DataStudioApp.createCommunityConnector();constconfig=cc.getConfig();constoption1=config.newOptionBuilder().setLabel('option label').setValue('option_value');constoption2=config.newOptionBuilder().setLabel('second option label').setValue('option_value_2');constinfo1=config.newSelectSingle().setId('api_endpoint').setName('Data Type').setHelpText('Select the data type you\'re interested in.').setAllowOverride(true).addOption(option1).addOption(option2);
[[["容易理解","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"]],["上次更新時間:2024-12-22 (世界標準時間)。"],[[["`SelectSingle` defines how a single-select dropdown menu appears and functions within a Data Studio configuration."],["It allows developers to specify options, help text, and behavior such as allowing users to override the selection."],["Methods like `addOption`, `setAllowOverride`, `setHelpText`, `setId`, `setIsDynamic`, and `setName` are used to configure the dropdown's attributes and functionality."],["Each method returns the `SelectSingle` object itself, enabling chained method calls for streamlined configuration."]]],["`SelectSingle` configures how a single selection is displayed in Data Studio. Key actions include adding options via `addOption`, enabling overrides with `setAllowOverride`, setting help text via `setHelpText`, defining a unique `id` with `setId`, specifying dynamic status using `setIsDynamic`, and setting the display `name` with `setName`. Each method returns the `SelectSingle` builder, enabling method chaining. This config determines the available choices and how users interact with the select field in Data Studio.\n"]]