Class RemoveWidget
Stay organized with collections
Save and categorize content based on your preferences.
RemoveWidget
A builder for RemoveWidget objects. Developers can remove a widget from the card by passing a
Remove to Modify.
Only available for Google Workspace add-ons that extend Google Workspace Studio.
Sample usage:
constremoveWidget=AddOnsResponseService.newRemoveWidget().setWidgetId('sample_id'); constmodifyCard=AddOnsResponseService.newModifyCard().setRemoveWidget(removeWidget);
Methods
| Method | Return type | Brief description |
|---|---|---|
set | Remove | Sets the widget ID of the widget to be removed. |
Detailed documentation
setWidgetId(widgetId)
Sets the widget ID of the widget to be removed.
Parameters
| Name | Type | Description |
|---|---|---|
widget | String | The ID of the widget to remove. |
Return
Remove — The remove widget object.