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.



3292
3293
3294
# File 'lib/google/apis/chat_v1/classes.rb', line 3292

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



3290
3291
3292
# File 'lib/google/apis/chat_v1/classes.rb', line 3290

def items
  @items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3297
3298
3299
# File 'lib/google/apis/chat_v1/classes.rb', line 3297

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