Class TextFormatChip

テキスト形式チップ

テキスト形式のクリック可能なチップ。

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");

}

メソッド

メソッド戻り値の型概要
setLabel(label)TextFormatChipチップに表示されるテキストを設定します。
setTextFormatIcon(icon)TextFormatChipチップに表示されるアイコンを設定します。
setUrl(url)TextFormatChipチップがクリックされたときに移動する URL を設定します。

詳細なドキュメント

setLabel(label)

チップに表示されるテキストを設定します。

パラメータ

名前説明
labelStringチップのテキストラベル。

戻る

TextFormatChip - チェーン用のこのチップ オブジェクト。


setTextFormatIcon(icon)

チップに表示されるアイコンを設定します。

パラメータ

名前説明
iconTextFormatIconチップに設定する TextFormatIcon

戻る

TextFormatChip - チェーン用のこのチップ オブジェクト。


setUrl(url)

チップがクリックされたときに移動する URL を設定します。

パラメータ

名前説明
urlStringチップのリンク先 URL。

戻る

TextFormatChip - チェーン用のこのチップ オブジェクト。