Enum SelectionInput.Types.SelectionType
The format for 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.
Namespace: Google.Apps.Card.V1
Assembly: Google.Apps.Card.V1.dll
Syntax
public enum SelectionInput.Types.SelectionType
Fields
Name | Description |
---|---|
CheckBox | A set of checkboxes. Users can select one or more checkboxes. |
Dropdown | A dropdown menu. Users can select one item from the menu. |
MultiSelect | A menu with a text box. Users can type and select one or more items.
For Google Workspace add-ons, you must populate items using a static
array of For Google Chat apps, you can also populate items using a dynamic data source and autosuggest items as users type in the menu. For example, users can start typing the name of a Google Chat space and the widget autosuggests the space. To dynamically populate items for a multiselect menu, use one of the following types of data sources:
For examples of how to implement multiselect menus for Chat apps, see Add a multiselect menu. |
RadioButton | A set of radio buttons. Users can select one radio button. |
Switch | A set of switches. Users can turn on one or more switches. |