Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::WidgetMarkup::ImageButton.
An image button with an onclick
action.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#icon
def icon() -> ::Google::Apps::Chat::V1::WidgetMarkup::Icon
Returns
-
(::Google::Apps::Chat::V1::WidgetMarkup::Icon) — The icon specified by an
enum
that indices to an icon provided by Chat API.
#icon=
def icon=(value) -> ::Google::Apps::Chat::V1::WidgetMarkup::Icon
Parameter
-
value (::Google::Apps::Chat::V1::WidgetMarkup::Icon) — The icon specified by an
enum
that indices to an icon provided by Chat API.
Returns
-
(::Google::Apps::Chat::V1::WidgetMarkup::Icon) — The icon specified by an
enum
that indices to an icon provided by Chat API.
#icon_url
def icon_url() -> ::String
Returns
- (::String) — The icon specified by a URL.
#icon_url=
def icon_url=(value) -> ::String
Parameter
- value (::String) — The icon specified by a URL.
Returns
- (::String) — The icon specified by a URL.
#name
def name() -> ::String
Returns
-
(::String) — The name of this
image_button
that's used for accessibility. Default value is provided if this name isn't specified.
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — The name of this
image_button
that's used for accessibility. Default value is provided if this name isn't specified.
Returns
-
(::String) — The name of this
image_button
that's used for accessibility. Default value is provided if this name isn't specified.
#on_click
def on_click() -> ::Google::Apps::Chat::V1::WidgetMarkup::OnClick
Returns
-
(::Google::Apps::Chat::V1::WidgetMarkup::OnClick) — The
onclick
action.
#on_click=
def on_click=(value) -> ::Google::Apps::Chat::V1::WidgetMarkup::OnClick
Parameter
-
value (::Google::Apps::Chat::V1::WidgetMarkup::OnClick) — The
onclick
action.
Returns
-
(::Google::Apps::Chat::V1::WidgetMarkup::OnClick) — The
onclick
action.