Class: Google::Apps::Card::V1::OverflowMenu
- Inherits:
-
Object
- Object
- Google::Apps::Card::V1::OverflowMenu
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/apps/card/v1/card.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.
Defined Under Namespace
Classes: OverflowMenuItem
Instance Attribute Summary collapse
Instance Attribute Details
#items ⇒ ::Array<::Google::Apps::Card::V1::OverflowMenu::OverflowMenuItem>
Returns Required. The list of menu options.
1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1497 class OverflowMenu include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An option that users can invoke in an overflow menu. # # [Google Workspace add-ons and Chat # apps](https://developers.google.com/workspace/extend): # @!attribute [rw] start_icon # @return [::Google::Apps::Card::V1::Icon] # The icon displayed in front of the text. # @!attribute [rw] text # @return [::String] # Required. The text that identifies or describes the item to users. # @!attribute [rw] on_click # @return [::Google::Apps::Card::V1::OnClick] # Required. The action invoked when a menu option is selected. # This `OnClick` cannot contain an `OverflowMenu`, any specified # `OverflowMenu` is dropped and the menu item disabled. # @!attribute [rw] disabled # @return [::Boolean] # Whether the menu option is disabled. # Defaults to false. class OverflowMenuItem include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |