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:
| Parameter | Type | Description |
|---|---|---|
| headerEl | HTMLElement | The header element of the section. |
| dom | ResultDom | The DOM tree of the section. |
| collapsed | boolean | Whether the section should be collapsed. |
| shouldAnimate | boolean | Whether to animate the transition. |
Returns: Promise<void> — A promise that resolves when the section is updated.