Class: Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenu
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenu
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
A widget that presents a pop-up menu with one or more actions that users can
invoke. For example, showing non-primary actions in a card. You can use this
widget when actions don't fit in the available space. To use, specify this
widget in the OnClick
action of widgets that support it. For example, in a
Button
. Google Chat apps:
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1OverflowMenu
constructor
A new instance of GoogleAppsCardV1OverflowMenu.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1OverflowMenu
Returns a new instance of GoogleAppsCardV1OverflowMenu.
2684 2685 2686 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2684 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenuItem>
Required. The list of menu options.
Corresponds to the JSON property items
2682 2683 2684 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2682 def items @items end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2689 2690 2691 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2689 def update!(**args) @items = args[:items] if args.key?(:items) end |