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.newSelectMultiple().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"]],["最后更新时间 (UTC):2024-12-22。"],[[["`SelectMultiple` defines how a multi-select dropdown appears in Data Studio, allowing users to choose multiple options from a list."],["Developers can use methods like `addOption`, `setAllowOverride`, `setHelpText`, `setId`, `setIsDynamic`, and `setName` to customize the select multiple element."],["Each option in the select multiple is built using `OptionBuilder` to set labels and values."],["Configuration options like allowing overrides, providing help text, and setting a dynamic status further refine the behavior of the select multiple element."]]],["The `SelectMultiple` config allows defining how multiple selections are displayed in Data Studio. Key actions include: adding options using `addOption()`, setting override permissions with `setAllowOverride()`, providing help text via `setHelpText()`, and establishing a unique ID with `setId()`. You can control the dynamic behavior using `setIsDynamic()`. Furthermore, the display name is set by `setName()`, all allowing chaining. This is exemplified by the creation of a new multiple select config with two options in the code.\n"]]