Class: Google::Apps::Card::V1::TextParagraph

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/apps/card/v1/card.rb

Overview

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:

Defined Under Namespace

Modules: TextSyntax

Instance Attribute Summary collapse

Instance Attribute Details

#max_lines::Integer

Returns 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.

Returns:

  • (::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.



844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
# File 'proto_docs/google/apps/card/v1/card.rb', line 844

class TextParagraph
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Syntax to use for formatting text.
  #
  # [Google Chat apps](https://developers.google.com/workspace/chat):
  module TextSyntax
    # The text is rendered as HTML if unspecified.
    TEXT_SYNTAX_UNSPECIFIED = 0

    # The text is rendered as HTML. This is the default value.
    HTML = 1

    # The text is rendered as Markdown.
    MARKDOWN = 2
  end
end

#text::String

Returns The text that's shown in the widget.

Returns:

  • (::String)

    The text that's shown in the widget.



844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
# File 'proto_docs/google/apps/card/v1/card.rb', line 844

class TextParagraph
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Syntax to use for formatting text.
  #
  # [Google Chat apps](https://developers.google.com/workspace/chat):
  module TextSyntax
    # The text is rendered as HTML if unspecified.
    TEXT_SYNTAX_UNSPECIFIED = 0

    # The text is rendered as HTML. This is the default value.
    HTML = 1

    # The text is rendered as Markdown.
    MARKDOWN = 2
  end
end

#text_syntax::Google::Apps::Card::V1::TextParagraph::TextSyntax

Returns The syntax of the text. If not set, the text is rendered as HTML.

Google Chat apps:.

Returns:



844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
# File 'proto_docs/google/apps/card/v1/card.rb', line 844

class TextParagraph
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Syntax to use for formatting text.
  #
  # [Google Chat apps](https://developers.google.com/workspace/chat):
  module TextSyntax
    # The text is rendered as HTML if unspecified.
    TEXT_SYNTAX_UNSPECIFIED = 0

    # The text is rendered as HTML. This is the default value.
    HTML = 1

    # The text is rendered as Markdown.
    MARKDOWN = 2
  end
end