Class: Google::Apps::Card::V1::Suggestions
- Inherits:
-
Object
- Object
- Google::Apps::Card::V1::Suggestions
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/apps/card/v1/card.rb
Overview
Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed.
For example, a text input field for programming language might suggest
Java, JavaScript, Python, and C++. When users start typing Jav, the list
of suggestions filters to show Java and JavaScript.
Suggested values help guide users to enter values that your app can make
sense of. When referring to JavaScript, some users might enter javascript
and others java script. Suggesting JavaScript can standardize how users
interact with your app.
When specified, TextInput.type is always SINGLE_LINE, even if it's set
to MULTIPLE_LINE.
Defined Under Namespace
Classes: SuggestionItem
Instance Attribute Summary collapse
-
#items ⇒ ::Array<::Google::Apps::Card::V1::Suggestions::SuggestionItem>
A list of suggestions used for autocomplete recommendations in text input fields.
Instance Attribute Details
#items ⇒ ::Array<::Google::Apps::Card::V1::Suggestions::SuggestionItem>
Returns A list of suggestions used for autocomplete recommendations in text input fields.
1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1196 class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # One suggested value that users can enter in a text input field. # # [Google Workspace add-ons and Chat # apps](https://developers.google.com/workspace/extend): # @!attribute [rw] text # @return [::String] # The value of a suggested input to a text input field. This is # equivalent to what users enter themselves. class SuggestionItem include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |