UpdateWidget

A builder for `https://developers.google.com/apps-script/reference/add-ons-response-service/update-widget#` objects. Developers can update a widget in the card by passing
a `https://developers.google.com/apps-script/reference/add-ons-response-service/update-widget#` to `https://developers.google.com/apps-script/reference/add-ons-response-service/modify-card`


Only available for Google Workspace add-ons that extend Google Workspace Studio.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/update-widget#addSuggestion(Object,Object,Boolean,Object,Object)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-widget#` | Adds a new item that can be selected, for multi-select menus. |

## Detailed documentation

### `addSuggestion(text, value, selected, startIconUri, bottomText)`

Adds a new item that can be selected, for multi-select menus.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `text` | `Object` | The text to be shown for this item. Non-string primitive arguments are converted to strings automatically. |
| `value` | `Object` | The form input value that is sent via the callback. Non-string primitive arguments are converted to strings automatically. |
| `selected` | `Boolean` | Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item. |
| `startIconUri` | `Object` | For multiselect menus, the URL for the icon displayed next to the item's text field. Supports PNG and JPEG files. |
| `bottomText` | `Object` | For multiselect menus, a text description or label that's displayed below the item's text field. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/update-widget#` --- This update widget object, for chaining.