行に表示される Chip オブジェクトのセットを保持します。次の行に折り返して水平方向にスクロール可能にします。
Google Chat アプリで利用できます。Google Workspace アドオンのデベロッパー プレビュー版。
const chip = CardService.newChip(); // Finish building the text chip... const chipList = CardService.newChipList() .setLayout(CardService.ChipListLayout.WRAPPED) .addChip(chip);
メソッド
| メソッド | 戻り値の型 | 概要 |
|---|---|---|
add | Chip | チップを追加します。 |
set | Chip | チップリストのレイアウトを設定します。 |
詳細なドキュメント
set Layout(layout)
チップリストのレイアウトを設定します。設定しない場合、デフォルトは Chip レイアウトになります。
const chip = CardService.newChip(); // Finish building the text chip... const chipList = CardService.newChipList() .setLayout(CardService.ChipListLayout.HORIZONTAL_SCROLLABLE) .addChip(chip);
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
layout | Chip | チップリストのレイアウト。 |
戻る
Chip - チェーン用のこのオブジェクト。