AI-generated Key Takeaways
-
A FixedFooter is a component shown at the bottom of a Card, available for Google Workspace add-ons and Google Chat apps.
-
It can have a primary button, which must be a filled text button, and optionally a secondary button, which must be an outlined text button and is only shown if a primary button is set.
The fixed footer shown at the bottom of a Card
.
Available for Google Workspace add-ons and Google Chat apps.
const fixedFooter = CardService . newFixedFooter (). setPrimaryButton ( CardService . newTextButton (). setText ( 'help' ). setOpenLink ( CardService . newOpenLink (). setUrl ( 'http://www.google.com' )), );
Methods
| Method | Return type | Brief description |
|---|---|---|
Fixed
|
Set the primary button in the fixed footer. | |
Fixed
|
Set the secondary button in the fixed footer. |
Detailed documentation
set
Primary
Button(button)
Set the primary button in the fixed footer. The primary button must be a Text
button. If the background color is unset for the primary button, the
button uses the primary color defined in the add-on manifest
.
Parameters
| Name | Type | Description |
|---|---|---|
button
|
Text
|
The button to add. |
Return
Fixed
— This object, for chaining.
set
Secondary
Button(button)
Set the secondary button in the fixed footer. The secondary button must be a Text
button. This method does nothing if set
isn't called to set the primary button.
Parameters
| Name | Type | Description |
|---|---|---|
button
|
Text
|
The button to add. |
Return
Fixed
— This object, for chaining.

