Class ModifyCard

ModifyCard

ModifyCard オブジェクトのビルダー。ModifyCard オブジェクトを Action に渡すことで、既存のカードのインターフェースを変更して更新します。使用方法については、構成カードを更新するをご覧ください。

使用例:

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

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

const navigation = AddOnsResponseService.newNavigation().addModifyCard(modifyCard);

メソッド

メソッド戻り値の型概要
setInsertSection(insertSection)ModifyCardこのアクションの挿入セクションを設定します。
setInsertWidget(insertWidget)ModifyCardこのアクションの挿入ウィジェットを設定します。
setRemoveSection(removeSection)ModifyCardこのアクションの削除セクションを設定します。
setRemoveWidget(removeWidget)ModifyCardこのアクションの削除ウィジェットを設定します。
setReplaceSection(replaceSection)ModifyCardこのアクションの置換セクションを設定します。
setReplaceWidget(replaceWidget)ModifyCardこのアクションの置換ウィジェットを設定します。

詳細なドキュメント

setInsertSection(insertSection)

このアクションの挿入セクションを設定します。

パラメータ

名前説明
insertSectionInsertSection作成する挿入セクション。

戻る

ModifyCard - チェーン用のこのオブジェクト。


setInsertWidget(insertWidget)

このアクションの挿入ウィジェットを設定します。

パラメータ

名前説明
insertWidgetInsertWidget作成する挿入ウィジェット。

戻る

ModifyCard - チェーン用のこのオブジェクト。


setRemoveSection(removeSection)

このアクションの削除セクションを設定します。

パラメータ

名前説明
removeSectionRemoveSection作成する削除セクション。

戻る

ModifyCard - チェーン用のこのオブジェクト。


setRemoveWidget(removeWidget)

このアクションの削除ウィジェットを設定します。

パラメータ

名前説明
removeWidgetRemoveWidget作成する削除ウィジェット。

戻る

ModifyCard - チェーン用のこのオブジェクト。


setReplaceSection(replaceSection)

このアクションの置換セクションを設定します。

パラメータ

名前説明
replaceSectionCardSection作成する置換セクション。

戻る

ModifyCard - チェーン用のこのオブジェクト。


setReplaceWidget(replaceWidget)

このアクションの置換ウィジェットを設定します。

パラメータ

名前説明
replaceWidgetWidget作成する置換ウィジェット。

戻る

ModifyCard - チェーン用のこのオブジェクト。