Class RemoveSection

RemoveSection

A builder for RemoveSection objects. Developers can remove a section from the card by passing a RemoveSection to ModifyCard

Only available for Google Workspace add-ons that extend Google Workspace Studio.

Sample usage:

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

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

Methods

MethodReturn typeBrief description
setSectionId(sectionId)RemoveSectionSets the section ID of the section to be removed.

Detailed documentation

setSectionId(sectionId)

Sets the section ID of the section to be removed.

Parameters

NameTypeDescription
sectionIdStringThe ID of the section to be removed.

Return

RemoveSection — This remove section object, for chaining.