Class SelectSingle
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একক নির্বাচন করুন কনফিগারেশনের জন্য নির্বাচিত একক তথ্য রয়েছে। ডেটা স্টুডিওতে সিলেক্ট সিঙ্গেল কীভাবে প্রদর্শিত হবে তা এর বৈশিষ্ট্য নির্ধারণ করে।
const cc = DataStudioApp.createCommunityConnector();
const config = cc.getConfig();
const option1 =
config.newOptionBuilder().setLabel('option label').setValue('option_value');
const option2 = config.newOptionBuilder()
.setLabel('second option label')
.setValue('option_value_2');
const info1 = config.newSelectSingle()
.setId('api_endpoint')
.setName('Data Type')
.setHelpText('Select the data type you\'re interested in.')
.setAllowOverride(true)
.addOption(option1)
.addOption(option2);
বিস্তারিত ডকুমেন্টেশন
add Option(optionBuilder)
একটি নতুন নির্বাচন বিকল্প যোগ করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
option Builder | Option Builder | একটি বিকল্পের জন্য একজন নির্মাতা। |
প্রত্যাবর্তন
Select Single
— এই নির্মাতা, চেইনিংয়ের জন্য।
set Allow Override(allowOverride)
এই কনফিগারেশন এন্ট্রির জন্য ওভাররাইডিং সক্ষম করে। যদি true
সেট করা হয়, ডেটা উৎস নির্মাতাদের কাছে প্রতিবেদন সম্পাদকদের জন্য এটি সক্ষম করার বিকল্প রয়েছে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
allow Override | Boolean | এই কনফিগারেশন এন্ট্রি রিপোর্টে ওভাররাইড করা যাবে কি না। |
প্রত্যাবর্তন
Select Single
— এই নির্মাতা, চেইনিংয়ের জন্য।
set Help Text(helpText)
এই কনফিগারেশন এন্ট্রির জন্য সাহায্য পাঠ্য সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
help Text | String | সেট করার জন্য হেল্পটেক্সট। |
প্রত্যাবর্তন
Select Single
— এই নির্মাতা, চেইনিংয়ের জন্য।
set Id(id)
এই কনফিগারেশন এন্ট্রির জন্য অনন্য আইডি সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
id | String | আইডি সেট করতে হবে। |
প্রত্যাবর্তন
Select Single
— এই নির্মাতা, চেইনিংয়ের জন্য।
set Is Dynamic(isDynamic)
এই কনফিগারেশন এন্ট্রির জন্য গতিশীল অবস্থা সেট করে।
যদি একটি গতিশীল কনফিগারেশন এন্ট্রি পরিবর্তন করা হয়, তাহলে পরবর্তী কনফিগারেশন এন্ট্রিগুলি সাফ করা হয়।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
is Dynamic | Boolean | সেট করার জন্য গতিশীল স্থিতি। |
প্রত্যাবর্তন
Select Single
— এই নির্মাতা, চেইনিংয়ের জন্য।
set Name(name)
এই কনফিগারেশন এন্ট্রির জন্য প্রদর্শন নাম সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
name | String | সেট করার নাম। |
প্রত্যাবর্তন
Select Single
— এই নির্মাতা, চেইনিংয়ের জন্য।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eSelectSingle\u003c/code\u003e defines how a single-select dropdown menu appears and functions within a Data Studio configuration.\u003c/p\u003e\n"],["\u003cp\u003eIt allows developers to specify options, help text, and behavior such as allowing users to override the selection.\u003c/p\u003e\n"],["\u003cp\u003eMethods like \u003ccode\u003eaddOption\u003c/code\u003e, \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 are used to configure the dropdown's attributes and functionality.\u003c/p\u003e\n"],["\u003cp\u003eEach method returns the \u003ccode\u003eSelectSingle\u003c/code\u003e object itself, enabling chained method calls for streamlined configuration.\u003c/p\u003e\n"]]],["`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"],null,["# Class SelectSingle\n\nSelectSingle\n\nContains select single information for the config. Its properties determine how the select single\nis displayed in Data Studio.\n\n```javascript\nconst cc = DataStudioApp.createCommunityConnector();\nconst config = cc.getConfig();\nconst option1 =\n config.newOptionBuilder().setLabel('option label').setValue('option_value');\n\nconst option2 = config.newOptionBuilder()\n .setLabel('second option label')\n .setValue('option_value_2');\n\nconst info1 = config.newSelectSingle()\n .setId('api_endpoint')\n .setName('Data Type')\n .setHelpText('Select the data type you\\'re interested in.')\n .setAllowOverride(true)\n .addOption(option1)\n .addOption(option2);\n``` \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------------------|-------------------|-------------------------------------------------------|\n| [addOption(optionBuilder)](#addOption(OptionBuilder)) | [SelectSingle](#) | Adds a new select option. |\n| [setAllowOverride(allowOverride)](#setAllowOverride(Boolean)) | [SelectSingle](#) | Enables overriding for this config entry. |\n| [setHelpText(helpText)](#setHelpText(String)) | [SelectSingle](#) | Sets the help text for this configuration entry. |\n| [setId(id)](#setId(String)) | [SelectSingle](#) | Sets the unique ID for this configuration entry. |\n| [setIsDynamic(isDynamic)](#setIsDynamic(Boolean)) | [SelectSingle](#) | Sets the dynamic status for this configuration entry. |\n| [setName(name)](#setName(String)) | [SelectSingle](#) | Sets the display name for this configuration entry. |\n\nDetailed documentation\n----------------------\n\n### `add``Option(optionBuilder)`\n\nAdds a new select option.\n\n#### Parameters\n\n| Name | Type | Description |\n|-------------------|--------------------------------------------------------------------|--------------------------|\n| `option``Builder` | [OptionBuilder](/apps-script/reference/data-studio/option-builder) | A builder for an option. |\n\n#### Return\n\n\n[SelectSingle](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Allow``Override(allowOverride)`\n\nEnables overriding for this config entry. If set to `true`, data source creators have the\noption to enable this for report editors.\n\n#### Parameters\n\n| Name | Type | Description |\n|-------------------|-----------|----------------------------------------------------------------|\n| `allow``Override` | `Boolean` | Whether or not this config entry can be overridden in reports. |\n\n#### Return\n\n\n[SelectSingle](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Help``Text(helpText)`\n\nSets the help text for this configuration entry.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------------|----------|----------------------|\n| `help``Text` | `String` | The helpText to set. |\n\n#### Return\n\n\n[SelectSingle](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Id(id)`\n\nSets the unique ID for this configuration entry.\n\n#### Parameters\n\n| Name | Type | Description |\n|------|----------|----------------|\n| `id` | `String` | The ID to set. |\n\n#### Return\n\n\n[SelectSingle](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Is``Dynamic(isDynamic)`\n\nSets the dynamic status for this configuration entry.\n\nIf a dynamic configuration entry is modified, subsequent configuration entries are cleared.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------------|-----------|----------------------------|\n| `is``Dynamic` | `Boolean` | The dynamic status to set. |\n\n#### Return\n\n\n[SelectSingle](#) --- This builder, for chaining.\n\n*** ** * ** ***\n\n### `set``Name(name)`\n\nSets the display name for this configuration entry.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------|----------|------------------|\n| `name` | `String` | The name to set. |\n\n#### Return\n\n\n[SelectSingle](#) --- This builder, for chaining."]]