Class InsertWidget
A builder for InsertWidget objects. Developers cans insert a widget into a card by passing a
Insert to Modify
Only available for Google Workspace add-ons that extend Google Workspace Studio.
Sample usage:
const newWidget = CardService.newDecoratedText().setText('New Widget'); const insertWidget = AddOnsResponseService.newInsertWidget() .insertAboveWidget('sample_id') .setWidget(newWidget); const modifyCard = AddOnsResponseService.newModifyCard().setInsertWidget(insertWidget);
Methods
| Method | Return type | Brief description |
|---|---|---|
insert | Insert | Sets the widget ID, and the new widget is inserted above the widget with the given ID. |
insert | Insert | Sets the widget ID, and the new widget is inserted below the widget with the given ID. |
set | Insert | Sets the Widget to be inserted. |