Class InsertSection

セクションを挿入

InsertSection オブジェクトのビルダー。デベロッパーは、InsertSectionModifyCard に渡すことで、カードに新しいセクションを挿入できます。

Google Workspace Studio を拡張する Google Workspace アドオンでのみ使用できます。

使用例:

const insertSection = AddOnsResponseService.newInsertSection().insertBelowSection('sample_id')
.setSection(CardService.newCardSection().setHeader('New Section'));

const modifyCard = AddOnsResponseService.newModifyCard()
.setInsertSection(insertSection);

メソッド

メソッド戻り値の型概要
insertAtTop(onCardTop)InsertSection新しいセクションをカードの上部に挿入するかどうかを示す onCardTop フラグを設定します。
insertBelowSection(sectionId)InsertSectionセクション ID を設定します。新しいセクションは、その下に挿入されます。
setSection(section)InsertSection挿入するカード セクションを設定します。

詳細なドキュメント

insertAtTop(onCardTop)

新しいセクションをカードの上部に挿入するかどうかを示す onCardTop フラグを設定します。

パラメータ

名前説明
onCardTopBooleanonCardTop フラグ。

戻る

InsertSection - チェーン用の挿入セクション オブジェクト。


insertBelowSection(sectionId)

セクション ID を設定します。新しいセクションは、その下に挿入されます。セクション ID が見つからない場合は、新しいセクションがカードの末尾に挿入されます。

パラメータ

名前説明
sectionIdString下に挿入するセクションの ID。

戻る

InsertSection - チェーン用の挿入セクション オブジェクト。


setSection(section)

挿入するカード セクションを設定します。

パラメータ

名前説明
sectionCardSection挿入する CardSection

戻る

InsertSection - チェーン用の挿入セクション オブジェクト。