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 |
|---|---|---|
Modify
|
Sets the insert section for this action. | |
Modify
|
Sets the insert widget for this action. | |
Modify
|
Sets the remove section for this action. | |
Modify
|
Sets the remove widget for this action. | |
Modify
|
Sets the replace section for this action. | |
Modify
|
Sets the replace widget for this action. |
Detailed documentation
set
Insert
Section(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.
set
Insert
Widget(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.
set
Remove
Section(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.
set
Remove
Widget(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.
set
Replace
Section(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.
set
Replace
Widget(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.

