Class: Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenu

Inherits:
Object
  • Object
show all
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 Workspace Add-ons and Chat apps:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1OverflowMenu

Returns a new instance of GoogleAppsCardV1OverflowMenu.



2821
2822
2823
# File 'lib/google/apis/chat_v1/classes.rb', line 2821

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#itemsArray<Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenuItem>

Required. The list of menu options. Corresponds to the JSON property items



2819
2820
2821
# File 'lib/google/apis/chat_v1/classes.rb', line 2819

def items
  @items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2826
2827
2828
# File 'lib/google/apis/chat_v1/classes.rb', line 2826

def update!(**args)
  @items = args[:items] if args.key?(:items)
end