Définissez le bouton secondaire dans le pied de page fixe.
Documentation détaillée
setPrimaryButton(button)
Définissez le bouton principal dans le pied de page fixe. Le bouton principal doit être un bouton TextButtonStyle.FILLED. Si la couleur d'arrière-plan n'est pas définie pour le bouton principal, le bouton utilise la couleur principale définie dans le manifest du module complémentaire.
Définissez le bouton secondaire dans le pied de page fixe. Le bouton secondaire doit être un bouton TextButtonStyle.OUTLINED. Cette méthode ne fait rien si setPrimaryButton(button) n'est pas appelé pour définir le bouton principal.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/01/30 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/01/30 (UTC)."],[[["A FixedFooter is displayed at the bottom of a Card in Google Workspace Add-ons and Google Chat apps."],["It can contain a primary button (required) and an optional secondary button for user interaction."],["Primary buttons have a filled style while secondary buttons have an outlined style."],["Developers can customize button actions, such as opening a link, using the `setPrimaryButton` and `setSecondaryButton` methods."]]],["The `FixedFooter` feature, available in Google Workspace add-ons and Google Chat apps, allows setting buttons at the bottom of a card. You can set a `primaryButton` using `setPrimaryButton()`, which requires a `TextButtonStyle.FILLED` button. Optionally, a `secondaryButton` can be added via `setSecondaryButton()`, using a `TextButtonStyle.OUTLINED` button. Setting a secondary button is only effective if a primary button is set first. Both methods return the `FixedFooter` object for chaining.\n"]]