Class TextParagraph

TextParagraph

一个显示文本并支持基本 HTML 格式的微件。

适用于 Google Workspace 插件和 Google Chat 应用。

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

方法

方法返回类型简介
setText(text)TextParagraph设置段落的文本。

详细文档

setText(text)

设置段落的文本。必填。

参数

名称类型说明
textString要显示的文本。

弃踢回攻

TextParagraph - 此对象,用于链接。