Class RemoveWidget

RemoveWidget

A builder for RemoveWidget objects. Developers can remove a widget from the card by passing a RemoveWidget to ModifyCard .

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

MethodReturn typeBrief description
setWidgetId(widgetId) RemoveWidget 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

NameTypeDescription
widgetIdStringThe ID of the widget to remove.

Return

RemoveWidget — The remove widget object.

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 2025年12月03日 UTC.