Class FixedFooter

  • 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.

FixedFooter

The fixed footer shown at the bottom of aCard.

Available for Google Workspace add-ons and Google Chat apps.

constfixedFooter=CardService.newFixedFooter().setPrimaryButton(CardService.newTextButton().setText('help').setOpenLink(CardService.newOpenLink().setUrl('http://www.google.com')),);

Methods

MethodReturn typeBrief description
setPrimaryButton(button)FixedFooterSet the primary button in the fixed footer.
setSecondaryButton(button)FixedFooterSet the secondary button in the fixed footer.

Detailed documentation

setPrimaryButton(button)

Set the primary button in the fixed footer. The primary button must be aTextButtonStyle.FILLED button. If the background color is unset for the primary button, thebutton uses the primary color defined in the add-onmanifest.

Parameters

NameTypeDescription
buttonTextButtonThe button to add.

Return

FixedFooter — This object, for chaining.


setSecondaryButton(button)

Set the secondary button in the fixed footer. The secondary button must be aTextButtonStyle.OUTLINED button. This method does nothing ifsetPrimaryButton(button) isn't called to set the primary button.

Parameters

NameTypeDescription
buttonTextButtonThe button to add.

Return

FixedFooter — This object, for chaining.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-03 UTC.