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.
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
OnClickcannot contain anOverflowMenu, any specifiedOverflowMenuis 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
OnClickcannot contain anOverflowMenu, any specifiedOverflowMenuis dropped and the menu item disabled.
Returns
-
(::Google::Apps::Card::V1::OnClick) — Required. The action invoked when a menu option is selected.
This
OnClickcannot contain anOverflowMenu, any specifiedOverflowMenuis dropped and the menu item disabled.
#start_icon
def start_icon() -> ::Google::Apps::Card::V1::Icon
Returns
- (::Google::Apps::Card::V1::Icon) — The icon displayed in front of the text.
#start_icon=
def start_icon=(value) -> ::Google::Apps::Card::V1::Icon
Parameter
- value (::Google::Apps::Card::V1::Icon) — The icon displayed in front of the text.
Returns
- (::Google::Apps::Card::V1::Icon) — The icon displayed in front of the text.
#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.