Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
AuswahlEingabeTyp
Das Format der Elemente, die Nutzer auswählen können. Unterschiedliche Optionen unterstützen unterschiedliche Arten von Interaktionen. So können Nutzer beispielsweise mehrere Kästchen anklicken, aber nur einen Artikel aus einem Drop-down-Menü auswählen.
Jede Auswahleingabe unterstützt eine Art von Auswahl. Das Mischen von Kästchen und Schaltern wird beispielsweise nicht unterstützt.
Verfügbar für Google Chat-Apps und Google Workspace-Add-ons.
Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel:
CardService.SelectionInput.CHECK_BOX.
Attribute
Attribut
Typ
Beschreibung
CHECK_BOX
Enum
Eingabestil für Kästchen. Standard.
RADIO_BUTTON
Enum
Eingabestil für Optionsfelder. Es kann maximal ein Element in der Gruppe ausgewählt werden.
DROPDOWN
Enum
Eingabestil für die Auswahl im Drop-down-Menü.
SWITCH
Enum
Eine Reihe von Schaltern. Nutzer können einen oder mehrere Schalter aktivieren.
MULTI_SELECT
Enum
Ein Mehrfachauswahlmenü für statische oder dynamische Daten.
[[["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)."],[[["`SelectionInputType` dictates how users interact with selectable items, such as choosing single or multiple options through checkboxes, radio buttons, dropdowns, switches, or multi-select menus."],["Each selection input element supports a single selection type, and combining different types like checkboxes and switches within the same element is not allowed."],["This feature is available for use in Google Chat apps and Google Workspace Add-ons."],["To specify a selection type, use the `CardService.SelectionInput` enum followed by the desired property, for instance, `CardService.SelectionInput.CHECK_BOX` for checkboxes."]]],["Users can select items in various formats, including `CHECK_BOX`, `RADIO_BUTTON`, `DROPDOWN`, `SWITCH`, and `MULTI_SELECT`. Each selection input supports only one style, and mixing styles is unsupported. Checkboxes and switches allow multiple selections, while radio buttons and dropdowns are limited to single selections. `MULTI_SELECT` is used for multiselect options. This is applicable to Google Chat apps and Google Workspace add-ons. Each selection style can be called by it's parent class, name and property.\n"]]