0.31.0 (latest) 0.30.0 0.29.0 0.28.0 0.27.0 0.23.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.1 0.15.0 0.14.0 0.13.1 0.12.1 0.11.2 0.10.0 0.9.0 0.8.1 0.7.2 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Google Apps Chat V1 Client class 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.
[Google Workspace add-ons and Chat
apps](https://developers.google.com/workspace/extend):

Protobuf type `google.apps.card.v1.SelectionInput.SelectionType`

## Namespace

Google \\ Apps \\ Card \\ V1 \\ SelectionInput

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### CHECK_BOX

```php
Value: 0
```
A set of checkboxes. Users can select one or more checkboxes.

Generated from protobuf enum `CHECK_BOX = 0;`

### RADIO_BUTTON

```php
Value: 1
```
A set of radio buttons. Users can select one radio button.

Generated from protobuf enum `RADIO_BUTTON = 1;`

### PBSWITCH

```php
Value: 2
```
A set of switches. Users can turn on one or more switches.

Generated from protobuf enum `SWITCH = 2;`

### DROPDOWN

```php
Value: 3
```
A dropdown menu. Users can select one item from the menu.

For Google Chat apps, you can 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 dropdown menu, use one of
the following types of data sources:

- Google Workspace data: Items are populated using data from Google Workspace, such as Google Workspace users or Google Chat spaces.
- External data: Items are populated from an external data source outside of Google Workspace. For examples of how to implement dropdown menus for Chat apps, see [Add a dropdown
  menu](https://developers.google.com/workspace/chat/design-interactive-card-dialog#dropdown-menu) and [Dynamically populate drop-down
  menus](https://developers.google.com/workspace/chat/design-interactive-card-dialog#dynamic-dropdown-menu). [Google Workspace add-ons and Chat
  apps](https://developers.google.com/workspace/extend):

Generated from protobuf enum `DROPDOWN = 3;`

### MULTI_SELECT

```php
Value: 4
```
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 `SelectionItem` objects.
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:

- Google Workspace data: Items are populated using data from Google Workspace, such as Google Workspace users or Google Chat spaces.
- External data: Items are populated from an external data source outside of Google Workspace. For examples of how to implement multiselect menus for Chat apps, see [Add a multiselect
  menu](https://developers.google.com/workspace/chat/design-interactive-card-dialog#multiselect-menu). [Google Workspace add-ons and Chat
  apps](https://developers.google.com/workspace/extend):

Generated from protobuf enum `MULTI_SELECT = 4;`