Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#max_lines
def max_lines() -> ::Integer-
(::Integer) — 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 more button. If the text is equal or
shorter than the specified maximum number of lines, a show more button
isn't displayed.
The default value is 0, in which case all context is displayed. Negative values are ignored.
#max_lines=
def max_lines=(value) -> ::Integer-
value (::Integer) — 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 more button. If the text is equal or
shorter than the specified maximum number of lines, a show more button
isn't displayed.
The default value is 0, in which case all context is displayed. Negative values are ignored.
-
(::Integer) — 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 more button. If the text is equal or
shorter than the specified maximum number of lines, a show more button
isn't displayed.
The default value is 0, in which case all context is displayed. Negative values are ignored.
#text
def text() -> ::String- (::String) — The text that's shown in the widget.
#text=
def text=(value) -> ::String- value (::String) — The text that's shown in the widget.
- (::String) — The text that's shown in the widget.
#text_syntax
def text_syntax() -> ::Google::Apps::Card::V1::TextParagraph::TextSyntax-
(::Google::Apps::Card::V1::TextParagraph::TextSyntax) — The syntax of the text. If not set, the text is rendered as HTML.
#text_syntax=
def text_syntax=(value) -> ::Google::Apps::Card::V1::TextParagraph::TextSyntax-
value (::Google::Apps::Card::V1::TextParagraph::TextSyntax) — The syntax of the text. If not set, the text is rendered as HTML.
-
(::Google::Apps::Card::V1::TextParagraph::TextSyntax) — The syntax of the text. If not set, the text is rendered as HTML.