InsertSection オブジェクトのビルダー。デベロッパーは、Insert を Modify に渡すことで、カードに新しいセクションを挿入できます。
Google Workspace Studio を拡張する Google Workspace アドオンでのみ使用できます。
使用例:
const insertSection = AddOnsResponseService.newInsertSection().insertBelowSection('sample_id') .setSection(CardService.newCardSection().setHeader('New Section')); const modifyCard = AddOnsResponseService.newModifyCard() .setInsertSection(insertSection);
メソッド
| メソッド | 戻り値の型 | 概要 |
|---|---|---|
insert | Insert | 新しいセクションをカードの上部に挿入するかどうかを示す onCardTop フラグを設定します。 |
insert | Insert | セクション ID を設定します。新しいセクションは、その下に挿入されます。 |
set | Insert | 挿入するカード セクションを設定します。 |
詳細なドキュメント
insert At Top(onCardTop)
新しいセクションをカードの上部に挿入するかどうかを示す onCardTop フラグを設定します。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
on | Boolean | onCardTop フラグ。 |
戻る
Insert - チェーン用の挿入セクション オブジェクト。
insert Below Section(sectionId)
セクション ID を設定します。新しいセクションは、その下に挿入されます。セクション ID が見つからない場合は、新しいセクションがカードの末尾に挿入されます。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
section | String | 下に挿入するセクションの ID。 |
戻る
Insert - チェーン用の挿入セクション オブジェクト。
set Section(section)
挿入するカード セクションを設定します。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
section | Card | 挿入する Card。 |
戻る
Insert - チェーン用の挿入セクション オブジェクト。