Skip to content

OutgoingLinkComponent.setSectionCollapsed method

OutgoingLinkComponent › setSectionCollapsed

Unofficial

Set the collapsed state of a specific section.

Signature:

setSectionCollapsed(headerEl: HTMLElement, dom: ResultDom, collapsed: boolean, shouldAnimate: boolean): Promise<void>

Parameters:

ParameterTypeDescription
headerElHTMLElementThe header element of the section.
domResultDomThe DOM tree of the section.
collapsedbooleanWhether the section should be collapsed.
shouldAnimatebooleanWhether to animate the transition.

Returns: Promise<void> — A promise that resolves when the section is updated.