Google Chat V1 API - Class Google::Apps::Card::V1::OverflowMenu::OverflowMenuItem (v0.18.0)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::OverflowMenu::OverflowMenuItem.

An option that users can invoke in an overflow menu.

Google Workspace add-ons and Chat apps:

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#disabled

def disabled() -> ::Boolean
Returns
  • (::Boolean) — Whether the menu option is disabled. Defaults to false.

#disabled=

def disabled=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the menu option is disabled. Defaults to false.
Returns
  • (::Boolean) — Whether the menu option is disabled. Defaults to false.

#on_click

def on_click() -> ::Google::Apps::Card::V1::OnClick
Returns
  • (::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.

#on_click=

def on_click=(value) -> ::Google::Apps::Card::V1::OnClick
Parameter
  • value (::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.
Returns
  • (::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.

#start_icon

def start_icon() -> ::Google::Apps::Card::V1::Icon
Returns

#start_icon=

def start_icon=(value) -> ::Google::Apps::Card::V1::Icon
Parameter
Returns

#text

def text() -> ::String
Returns
  • (::String) — Required. The text that identifies or describes the item to users.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — Required. The text that identifies or describes the item to users.
Returns
  • (::String) — Required. The text that identifies or describes the item to users.