Enum SelectionInputType
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
নির্বাচন ইনপুট প্রকার ব্যবহারকারীরা নির্বাচন করতে পারেন এমন আইটেমগুলির বিন্যাস। বিভিন্ন বিকল্প বিভিন্ন ধরনের মিথস্ক্রিয়া সমর্থন করে। উদাহরণস্বরূপ, ব্যবহারকারীরা একাধিক চেকবক্স নির্বাচন করতে পারেন, কিন্তু ড্রপডাউন মেনু থেকে শুধুমাত্র একটি আইটেম নির্বাচন করতে পারেন।
প্রতিটি নির্বাচন ইনপুট এক ধরনের নির্বাচন সমর্থন করে। চেকবক্স এবং সুইচ মিশ্রিত করা, উদাহরণস্বরূপ, সমর্থিত নয়।
Google Chat অ্যাপ এবং Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ।
একটি enum কল করার জন্য, আপনি তার পিতামাতার শ্রেণী, নাম এবং সম্পত্তি কল করুন। উদাহরণস্বরূপ, CardService.SelectionInput.CHECK_BOX
।
বৈশিষ্ট্য
সম্পত্তি | টাইপ | বর্ণনা |
---|
CHECK_BOX | Enum | চেকবক্স ইনপুট শৈলী। ডিফল্ট |
RADIO_BUTTON | Enum | রেডিও বোতাম ইনপুট শৈলী। গ্রুপে সর্বাধিক একটি আইটেম নির্বাচন করা যেতে পারে. |
DROPDOWN | Enum | ড্রপডাউন মেনু নির্বাচন ইনপুট শৈলী। |
SWITCH | Enum | সুইচ একটি সেট. ব্যবহারকারীরা এক বা একাধিক সুইচ চালু করতে পারেন। |
MULTI_SELECT | Enum | স্ট্যাটিক বা ডাইনামিক ডেটার জন্য একটি মাল্টিসিলেক্ট মেনু। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eSelectionInputType\u003c/code\u003e dictates how users interact with selectable items, such as choosing single or multiple options through checkboxes, radio buttons, dropdowns, switches, or multi-select menus.\u003c/p\u003e\n"],["\u003cp\u003eEach selection input element supports a single selection type, and combining different types like checkboxes and switches within the same element is not allowed.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is available for use in Google Chat apps and Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003eTo specify a selection type, use the \u003ccode\u003eCardService.SelectionInput\u003c/code\u003e enum followed by the desired property, for instance, \u003ccode\u003eCardService.SelectionInput.CHECK_BOX\u003c/code\u003e for checkboxes.\u003c/p\u003e\n"]]],["Users can select items in various formats, including `CHECK_BOX`, `RADIO_BUTTON`, `DROPDOWN`, `SWITCH`, and `MULTI_SELECT`. Each selection input supports only one style, and mixing styles is unsupported. Checkboxes and switches allow multiple selections, while radio buttons and dropdowns are limited to single selections. `MULTI_SELECT` is used for multiselect options. This is applicable to Google Chat apps and Google Workspace add-ons. Each selection style can be called by it's parent class, name and property.\n"],null,["# Enum SelectionInputType\n\nSelectionInputType\n\nThe format of the items that users can select. Different options support different types of\ninteractions. For example, users can select multiple checkboxes, but can only select one item\nfrom a dropdown menu.\n\nEach selection input supports one type of selection. Mixing checkboxes and switches, for\nexample, isn't supported.\n\nAvailable for Google Chat apps and Google Workspace add-ons.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.SelectionInput.CHECK_BOX`. \n\n### Properties\n\n| Property | Type | Description |\n|----------------|--------|--------------------------------------------------------------------------|\n| `CHECK_BOX` | `Enum` | Checkbox input style. Default. |\n| `RADIO_BUTTON` | `Enum` | Radio button input style. At most one item in the group can be selected. |\n| `DROPDOWN` | `Enum` | Dropdown menu selection input style. |\n| `SWITCH` | `Enum` | A set of switches. Users can turn on one or more switches. |\n| `MULTI_SELECT` | `Enum` | A multiselect menu for static or dynamic data. |"]]