Class Suggestions

Suggestions

Autocomplete suggestions to supplement a TextInput widget.

var textInput = CardService.newTextInput()
    .setSuggestions(CardService.newSuggestions()
        .addSuggestion("First suggestion")
        .addSuggestion("Second suggestion"))

Methods

MethodReturn typeBrief description
addSuggestion(suggestion)SuggestionsAdd a text suggestion.
addSuggestions(suggestions)SuggestionsAdd a list of text suggestions.

Detailed documentation

addSuggestion(suggestion)

Add a text suggestion.

Parameters

NameTypeDescription
suggestionStringThe suggestion text.

Return

Suggestions — This object, for chaining.


addSuggestions(suggestions)

Add a list of text suggestions.

Parameters

NameTypeDescription
suggestionsObject[]An array of string suggestions.

Return

Suggestions — This object, for chaining.

다음에 대한 의견 보내기...

도움이 필요하시나요? 지원 페이지를 방문하세요.