Reference documentation and code samples for the Google Apps Chat V1 Client class WidgetMarkup.
A widget is a UI element that presents text and images.
Generated from protobuf message google.chat.v1.WidgetMarkup
Namespace
Google \ Apps \ Chat \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text_paragraph
↳ image
↳ key_value
↳ buttons
array< Google\Apps\Chat\V1\WidgetMarkup\Button
>
A list of buttons. Buttons is also oneof data
and only one of these fields should be set.
getTextParagraph
Display a text paragraph in this widget.
hasTextParagraph
setTextParagraph
Display a text paragraph in this widget.
$this
getImage
Display an image in this widget.
hasImage
setImage
Display an image in this widget.
$this
getKeyValue
Display a key value item in this widget.
hasKeyValue
setKeyValue
Display a key value item in this widget.
$this
getButtons
A list of buttons. Buttons is also oneof data
and only one of these
fields should be set.
setButtons
A list of buttons. Buttons is also oneof data
and only one of these
fields should be set.
$this
getData
string