Class TextParagraph

TextParagraph

A widget that displays text and supports basic HTML formatting .

Available for Google Workspace Add-ons and Google Chat apps.

var textParagraph = CardService.newTextParagraph()
    .setText("This is a text paragraph widget. Multiple lines are allowed if needed.");

Methods

Method Return type Brief description
TextParagraph Sets the text of the paragraph.

Detailed documentation

setText(text)

Sets the text of the paragraph. Required.

Parameters

Name Type Description
text
String The text to display.

Return

TextParagraph — This object, for chaining.