Class: Google::Apps::Card::V1::SelectionInput::SelectionItem
- Inherits:
-
Object
- Object
- Google::Apps::Card::V1::SelectionInput::SelectionItem
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/apps/card/v1/card.rb
Overview
An item that users can select in a selection input, such as a checkbox or switch.
Instance Attribute Summary collapse
-
#bottom_text ⇒ ::String
For multiselect menus, a text description or label that's displayed below the item's
text
field. -
#selected ⇒ ::Boolean
Whether the item is selected by default.
-
#start_icon_uri ⇒ ::String
For multiselect menus, the URL for the icon displayed next to the item's
text
field. -
#text ⇒ ::String
The text that identifies or describes the item to users.
-
#value ⇒ ::String
The value associated with this item.
Instance Attribute Details
#bottom_text ⇒ ::String
Returns For multiselect menus, a text description or label that's
displayed below the item's text
field.
1138 1139 1140 1141 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1138 class SelectionItem include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#selected ⇒ ::Boolean
Returns Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.
1138 1139 1140 1141 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1138 class SelectionItem include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#start_icon_uri ⇒ ::String
Returns For multiselect menus, the URL for the icon displayed next to
the item's text
field. Supports PNG and JPEG files. Must be an HTTPS
URL. For example,
https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
.
1138 1139 1140 1141 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1138 class SelectionItem include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#text ⇒ ::String
Returns The text that identifies or describes the item to users.
1138 1139 1140 1141 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1138 class SelectionItem include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#value ⇒ ::String
Returns The value associated with this item. The client should use this as a form input value.
For details about working with form inputs, see Receive form data.
1138 1139 1140 1141 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1138 class SelectionItem include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |