Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::Chip.
A text, icon, or text and icon chip that users can click.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#alt_text
def alt_text() -> ::String-
(::String) — The alternative text that's used for accessibility.
Set descriptive text that lets users know what the chip does. For example, if a chip opens a hyperlink, write: "Opens a new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/workspace/chat".
#alt_text=
def alt_text=(value) -> ::String-
value (::String) — The alternative text that's used for accessibility.
Set descriptive text that lets users know what the chip does. For example, if a chip opens a hyperlink, write: "Opens a new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/workspace/chat".
-
(::String) — The alternative text that's used for accessibility.
Set descriptive text that lets users know what the chip does. For example, if a chip opens a hyperlink, write: "Opens a new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/workspace/chat".
#disabled
def disabled() -> ::Boolean-
(::Boolean) — Whether the chip is in an inactive state and ignores user actions.
Defaults to
false.
#disabled=
def disabled=(value) -> ::Boolean-
value (::Boolean) — Whether the chip is in an inactive state and ignores user actions.
Defaults to
false.
-
(::Boolean) — Whether the chip is in an inactive state and ignores user actions.
Defaults to
false.
#enabled
def enabled() -> ::Boolean-
(::Boolean) — Whether the chip is in an active state and responds to user actions.
Defaults to
true. Deprecated. Usedisabledinstead.
#enabled=
def enabled=(value) -> ::Boolean-
value (::Boolean) — Whether the chip is in an active state and responds to user actions.
Defaults to
true. Deprecated. Usedisabledinstead.
-
(::Boolean) — Whether the chip is in an active state and responds to user actions.
Defaults to
true. Deprecated. Usedisabledinstead.
#icon
def icon() -> ::Google::Apps::Card::V1::Icon-
(::Google::Apps::Card::V1::Icon) — The icon image. If both
iconandtextare set, then the icon appears before the text.
#icon=
def icon=(value) -> ::Google::Apps::Card::V1::Icon-
value (::Google::Apps::Card::V1::Icon) — The icon image. If both
iconandtextare set, then the icon appears before the text.
-
(::Google::Apps::Card::V1::Icon) — The icon image. If both
iconandtextare set, then the icon appears before the text.
#label
def label() -> ::String- (::String) — The text displayed inside the chip.
#label=
def label=(value) -> ::String- value (::String) — The text displayed inside the chip.
- (::String) — The text displayed inside the chip.
#on_click
def on_click() -> ::Google::Apps::Card::V1::OnClick- (::Google::Apps::Card::V1::OnClick) — Optional. The action to perform when a user clicks the chip, such as opening a hyperlink or running a custom function.
#on_click=
def on_click=(value) -> ::Google::Apps::Card::V1::OnClick- value (::Google::Apps::Card::V1::OnClick) — Optional. The action to perform when a user clicks the chip, such as opening a hyperlink or running a custom function.
- (::Google::Apps::Card::V1::OnClick) — Optional. The action to perform when a user clicks the chip, such as opening a hyperlink or running a custom function.