Skip to content

OutlineTreeItem

Unofficial

A heading row in the outline sidebar.

Import:

import type { OutlineTreeItem } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface OutlineTreeItem extends TreeCollapsibleItem

Extends: TreeCollapsibleItem

Properties

PropertyTypeDescription
childrenElHTMLElementContainer element for the child items of this collapsible node.
(Inherited from TreeCollapsibleItem)
collapsedbooleanCurrent collapsed state of tree item.
(Inherited from TreeCollapsibleItem)
collapseElHTMLElement | nullElement for the collapse/expand toggle indicator, or null if not rendered.
(Inherited from TreeCollapsibleItem)
collapsiblebooleanWhether tree item is able to be collapsed or not.
(Inherited from TreeCollapsibleItem)
headingHeadingCacheCached heading represented by this row.
headingTextstringRendered plain heading text.
pathstringHeading path through its ancestors.
pusherElHTMLElementVirtual scrolling spacer.
treeTree<OutlineTreeItem>Owning tree.
vChildrenTreeNodeVChildren<OutlineTreeItem, OutlineTreeItem>Nested heading rows.
viewOutlineViewOwning outline view.

Methods

MethodReturnsDescription
onCollapseClick($event)voidExecute collapse functionality on mouse click.
(Inherited from TreeCollapsibleItem)
setCollapsed(value, animate?)Promise<undefined>Set collapsed state of tree item.
(Inherited from TreeCollapsibleItem)
setCollapsible(value)voidSet collapsible state of tree item.
(Inherited from TreeCollapsibleItem)
toggleCollapsed(animate?)Promise<undefined>Toggle collapsed state of tree item.
(Inherited from TreeCollapsibleItem)
updateCollapsed(animate?)Promise<undefined>Update the tree item's cover element.
(Inherited from TreeCollapsibleItem)

Links to this page: