Modify オブジェクトのビルダー。Modify オブジェクトを 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);
メソッド
| メソッド | 戻り値の型 | 概要 |
|---|---|---|
set | Modify | このアクションの挿入セクションを設定します。 |
set | Modify | このアクションの挿入ウィジェットを設定します。 |
set | Modify | このアクションの削除セクションを設定します。 |
set | Modify | このアクションの削除ウィジェットを設定します。 |
set | Modify | このアクションの置換セクションを設定します。 |
set | Modify | このアクションの置換ウィジェットを設定します。 |
詳細なドキュメント
set Insert Section(insertSection)
このアクションの挿入セクションを設定します。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
insert | Insert | 作成する挿入セクション。 |
戻る
Modify - チェーン用のこのオブジェクト。
set Insert Widget(insertWidget)
このアクションの挿入ウィジェットを設定します。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
insert | Insert | 作成する挿入ウィジェット。 |
戻る
Modify - チェーン用のこのオブジェクト。
set Remove Section(removeSection)
このアクションの削除セクションを設定します。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
remove | Remove | 作成する削除セクション。 |
戻る
Modify - チェーン用のこのオブジェクト。
set Remove Widget(removeWidget)
このアクションの削除ウィジェットを設定します。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
remove | Remove | 作成する削除ウィジェット。 |
戻る
Modify - チェーン用のこのオブジェクト。
set Replace Section(replaceSection)
このアクションの置換セクションを設定します。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
replace | Card | 作成する置換セクション。 |
戻る
Modify - チェーン用のこのオブジェクト。
set Replace Widget(replaceWidget)
このアクションの置換ウィジェットを設定します。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
replace | Widget | 作成する置換ウィジェット。 |
戻る
Modify - チェーン用のこのオブジェクト。