class Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput
A widget that creates a UI item (for example, a drop-down list) with options for users to select.
Attributes
items[RW]
Corresponds to the JSON property `items` @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem>]
label[RW]
The label displayed ahead of the switch control. Corresponds to the JSON property `label` @return [String]
name[RW]
The name of the text input which is used in formInput. Corresponds to the JSON property `name` @return [String]
on_change_action[RW]
An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form. Corresponds to the JSON property `onChangeAction` @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
type[RW]
Corresponds to the JSON property `type` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 1788 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 1793 def update!(**args) @items = args[:items] if args.key?(:items) @label = args[:label] if args.key?(:label) @name = args[:name] if args.key?(:name) @on_change_action = args[:on_change_action] if args.key?(:on_change_action) @type = args[:type] if args.key?(:type) end