Enum SelectionInputType
SelectionInputType
The format of the items that users can select. Different options support different types of
interactions. For example, users can select multiple checkboxes, but can only select one item
from a dropdown menu.
Each selection input supports one type of selection. Mixing checkboxes and switches, for
example, isn't supported.
Available for Google Chat apps and Google Workspace Add-ons.
To call an enum, you call its parent class, name, and property. For example,
CardService.SelectionInput.CHECK_BOX
.
Properties
Property | Type | Description |
CHECK_BOX | Enum | Checkbox input style. Default. |
RADIO_BUTTON | Enum | Radio button input style. At most one item in the group can be selected. |
DROPDOWN | Enum | Dropdown menu selection input style. |
SWITCH | Enum | A set of switches. Users can turn on one or more switches. |
MULTI_SELECT | Enum | A multiselect menu for static or dynamic data. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 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."]]],[]]