Reference documentation and code samples for the Google Apps Chat V1 Client class TextParagraph.
A paragraph of text that supports formatting. For an example in Google Chat apps, see Add a paragraph of formatted text .
For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace add-ons . Google Workspace add-ons and Chat apps :
Generated from protobuf message google.apps.card.v1.TextParagraph
Namespace
Google \ Apps \ Card \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text
string
The text that's shown in the widget.
↳ max_lines
int
The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a show morebutton. If the text is equal or shorter than the specified maximum number of lines, a show morebutton isn't displayed. The default value is 0, in which case all context is displayed. Negative values are ignored.
↳ text_syntax
getText
The text that's shown in the widget.
string
setText
The text that's shown in the widget.
var
string
$this
getMaxLines
The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a show morebutton. If the text is equal or shorter than the specified maximum number of lines, a show morebutton isn't displayed.
The default value is 0, in which case all context is displayed. Negative values are ignored.
int
setMaxLines
The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a show morebutton. If the text is equal or shorter than the specified maximum number of lines, a show morebutton isn't displayed.
The default value is 0, in which case all context is displayed. Negative values are ignored.
var
int
$this
getTextSyntax
The syntax of the text. If not set, the text is rendered as HTML.
setTextSyntax
The syntax of the text. If not set, the text is rendered as HTML.
$this

