Legen Sie die sekundäre Schaltfläche in der fixen Fußzeile fest.
Detaillierte Dokumentation
setPrimaryButton(button)
Legen Sie die primäre Schaltfläche in der fixierten Fußzeile fest. Die primäre Schaltfläche muss eine TextButtonStyle.FILLED-Schaltfläche sein. Wenn die Hintergrundfarbe für die primäre Schaltfläche nicht festgelegt ist, wird die im manifest des Add-ons definierte primäre Farbe verwendet.
Legen Sie die sekundäre Schaltfläche in der fixen Fußzeile fest. Die sekundäre Schaltfläche muss eine TextButtonStyle.OUTLINED-Schaltfläche sein. Diese Methode führt nichts aus, wenn setPrimaryButton(button) nicht aufgerufen wird, um die primäre Schaltfläche festzulegen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]