A builder for Modify objects that changes and updates an existing card's
interface by passing the Modify object to a Action. For usage, see Update configuration cards.
Sample usage:
const insertSection = AddOnsResponseService.newInsertSection().insertBelowSection('sample_id') .setSection(CardService.newCardSection().setHeader('New Section')); const modifyCard = AddOnsResponseService.newModifyCard().setInsertSection(insertSection); const navigation = AddOnsResponseService.newNavigation().addModifyCard(modifyCard);
Methods
| Method | Return type | Brief description |
|---|---|---|
set | Modify | Sets the insert section for this action. |
set | Modify | Sets the insert widget for this action. |
set | Modify | Sets the remove section for this action. |
set | Modify | Sets the remove widget for this action. |
set | Modify | Sets the replace section for this action. |
set | Modify | Sets the replace widget for this action. |
Detailed documentation
setInsertSection(insertSection)
Sets the insert section for this action.
Parameters
| Name | Type | Description |
|---|---|---|
insert | Insert | The insert section to create. |
Return
Modify — This object, for chaining.
setInsertWidget(insertWidget)
Sets the insert widget for this action.
Parameters
| Name | Type | Description |
|---|---|---|
insert | Insert | The insert widget to create. |
Return
Modify — This object, for chaining.
setRemoveSection(removeSection)
Sets the remove section for this action.
Parameters
| Name | Type | Description |
|---|---|---|
remove | Remove | The remove section to create. |
Return
Modify — This object, for chaining.
setRemoveWidget(removeWidget)
Sets the remove widget for this action.
Parameters
| Name | Type | Description |
|---|---|---|
remove | Remove | The remove widget to create. |
Return
Modify — This object, for chaining.
setReplaceSection(replaceSection)
Sets the replace section for this action.
Parameters
| Name | Type | Description |
|---|---|---|
replace | Card | The replace section to create. |
Return
Modify — This object, for chaining.
setReplaceWidget(replaceWidget)
Sets the replace widget for this action.
Parameters
| Name | Type | Description |
|---|---|---|
replace | Widget | The replace widget to create. |
Return
Modify — This object, for chaining.