Class RemoveSection

移除部分

RemoveSection 对象的构建器。开发者可以通过向 ModifyCard 传递 RemoveSection 来从卡片中移除某个部分

仅适用于扩展 Google Workspace Studio 的 Google Workspace 插件。

用法示例:

const removeSection = AddOnsResponseService.newRemoveSection().setSectionId('sample_id');

const modifyCard = AddOnsResponseService.newModifyCard().setRemoveSection(removeSection);

方法

方法返回类型简介
setSectionId(sectionId)RemoveSection设置要移除的部分的部分 ID。

详细文档

setSectionId(sectionId)

设置要移除的部分的部分 ID。

参数

名称类型说明
sectionIdString要移除的部分的 ID。

返回

RemoveSection - 用于链接的移除部分对象。