顯示文字並且支援基本 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 | 設定段落文字。 |