文本格式的可点击 chip。
仅适用于扩展 Google Workspace Studio 的 Google Workspace 插件。
用法示例:
const chip = AddOnsResponseService.newChip() .setTextFormatIcon(AddOnsResponseService.newTextFormatIcon() .setIconUrl("https://www.google.com/icon.png")) .setLabel("test_label") .setUrl("https://www.google.com/chip.png"); }
方法
| 方法 | 返回类型 | 简介 |
|---|---|---|
set | Text | 设置在条状标签中显示的文本。 |
set | Text | 设置条状标签中显示的图标。 |
set | Text | 设置点击条状标签后要前往的网址。 |
详细文档
set Label(label)
set Text Format Icon(icon)
设置条状标签中显示的图标。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
icon | Text | 要在芯片中设置的 Text。 |
返回
Text - 此芯片对象,用于链式调用。