sugestie autouzupełniania uzupełniające widżet Text.
Dostępne w przypadku dodatków do Google Workspace i aplikacji Google Chat.
const textInput = CardService.newTextInput().setSuggestions( CardService.newSuggestions() .addSuggestion('First suggestion') .addSuggestion('Second suggestion'), );
Metody
| Metoda | Zwracany typ | Krótki opis |
|---|---|---|
add | Suggestions | Dodaj sugestię tekstową. |
add | Suggestions | Dodaj listę sugestii tekstowe. |
Szczegółowa dokumentacja
add Suggestion(suggestion)
Dodaj sugestię tekstową.
Parametry
| Nazwa | Typ | Opis |
|---|---|---|
suggestion | String | Tekst sugestii. |
Powrót
Suggestions – ten obiekt do łańcucha.
add Suggestions(suggestions)
Dodaj listę sugestii tekstowe.
Parametry
| Nazwa | Typ | Opis |
|---|---|---|
suggestions | Object[] | Tablica sugestii dotyczących ciągu znaków. |
Powrót
Suggestions – ten obiekt do łańcucha.