Enum SelectionInputType
चुना गयाइनपुटटाइप
उन आइटम का फ़ॉर्मैट जिन्हें उपयोगकर्ता चुन सकते हैं. अलग-अलग विकल्प, अलग-अलग तरह के इंटरैक्शन के साथ काम करते हैं. उदाहरण के लिए, उपयोगकर्ता एक से ज़्यादा चेकबॉक्स चुन सकते हैं, लेकिन ड्रॉपडाउन मेन्यू से सिर्फ़ एक आइटम चुना जा सकता है.
हर सिलेक्शन इनपुट में एक तरह का सिलेक्शन किया जा सकता है. उदाहरण के लिए, चेकबॉक्स और स्विच को एक साथ इस्तेमाल नहीं किया जा सकता.
यह सुविधा, Google Chat के ऐप्लिकेशन और Google Workspace के ऐड-ऑन के लिए उपलब्ध है.
किसी एनम को कॉल करने के लिए, उसकी पैरंट क्लास, नाम, और प्रॉपर्टी को कॉल किया जाता है. उदाहरण के लिए,
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 साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-01-30 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-01-30 (UTC) को अपडेट किया गया."],[[["`SelectionInputType` dictates how users interact with selectable items, such as choosing single or multiple options through checkboxes, radio buttons, dropdowns, switches, or multi-select menus."],["Each selection input element supports a single selection type, and combining different types like checkboxes and switches within the same element is not allowed."],["This feature is available for use in Google Chat apps and Google Workspace Add-ons."],["To specify a selection type, use the `CardService.SelectionInput` enum followed by the desired property, for instance, `CardService.SelectionInput.CHECK_BOX` for checkboxes."]]],["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"]]