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:這個物件用於鏈結。