Class FixedFooter

FixedFooter

The fixed footer shown at the bottom of a Card.

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

var fixedFooter =
      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 a TextButtonStyle.FILLED button. If the background color is unset for the primary button, the button uses the primary color defined in the add-on manifest.

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 a TextButtonStyle.OUTLINED button. This method does nothing if setPrimaryButton(button) isn't called to set the primary button.

Parameters

NameTypeDescription
buttonTextButtonThe button to add.

Return

FixedFooter — This object, for chaining.