Skip to content

TreeCollapsibleItem.setCollapsed method

TreeCollapsibleItem › setCollapsed

Unofficial

Set collapsed state of tree item.

Signature:

setCollapsed(value: boolean, animate?: boolean | undefined): Promise<undefined>

Parameters:

ParameterTypeDescription
valuebooleanWhether the item should be collapsed.
animate?boolean | undefinedIf set to true, will animate on collapse.

Returns: Promise<undefined>Resolves when the collapse state has been applied.