Class ModifyCard

Sửa đổiThẻ

Trình tạo cho các đối tượng ModifyCard thay đổi và cập nhật giao diện của thẻ hiện có bằng cách truyền đối tượng ModifyCard đến Action. Để sử dụng, hãy xem phần Cập nhật thẻ cấu hình.

Ví dụ về cách sử dụng:

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);

Phương thức

Phương thứcKiểu dữ liệu trả vềMô tả ngắn
setInsertSection(insertSection)ModifyCardĐặt phần chèn cho thao tác này.
setInsertWidget(insertWidget)ModifyCardĐặt tiện ích chèn cho thao tác này.
setRemoveSection(removeSection)ModifyCardĐặt phần xoá cho thao tác này.
setRemoveWidget(removeWidget)ModifyCardĐặt tiện ích xoá cho thao tác này.
setReplaceSection(replaceSection)ModifyCardĐặt phần thay thế cho thao tác này.
setReplaceWidget(replaceWidget)ModifyCardĐặt tiện ích thay thế cho thao tác này.

Tài liệu chi tiết

setInsertSection(insertSection)

Đặt phần chèn cho thao tác này.

Thông số

TênLoạiMô tả
insertSectionInsertSectionPhần chèn để tạo.

Cầu thủ trả bóng

ModifyCard – Đối tượng này, để liên kết.


setInsertWidget(insertWidget)

Đặt tiện ích chèn cho thao tác này.

Thông số

TênLoạiMô tả
insertWidgetInsertWidgetTiện ích chèn để tạo.

Cầu thủ trả bóng

ModifyCard – Đối tượng này, để liên kết.


setRemoveSection(removeSection)

Đặt phần xoá cho thao tác này.

Thông số

TênLoạiMô tả
removeSectionRemoveSectionPhần cần xoá để tạo.

Cầu thủ trả bóng

ModifyCard – Đối tượng này, để liên kết.


setRemoveWidget(removeWidget)

Đặt tiện ích xoá cho thao tác này.

Thông số

TênLoạiMô tả
removeWidgetRemoveWidgetXoá tiện ích để tạo.

Cầu thủ trả bóng

ModifyCard – Đối tượng này, để liên kết.


setReplaceSection(replaceSection)

Đặt phần thay thế cho thao tác này.

Thông số

TênLoạiMô tả
replaceSectionCardSectionPhần thay thế cần tạo.

Cầu thủ trả bóng

ModifyCard – Đối tượng này, để liên kết.


setReplaceWidget(replaceWidget)

Đặt tiện ích thay thế cho thao tác này.

Thông số

TênLoạiMô tả
replaceWidgetWidgetTiện ích thay thế để tạo.

Cầu thủ trả bóng

ModifyCard – Đối tượng này, để liên kết.