OutlineTreeItem
Unofficial
A heading row in the outline sidebar.
Import:
import type { OutlineTreeItem } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface OutlineTreeItem extends TreeCollapsibleItemExtends: TreeCollapsibleItem
Properties
| Property | Type | Description | |
|---|---|---|---|
| childrenEl | HTMLElement | Container element for the child items of this collapsible node. (Inherited from TreeCollapsibleItem) | |
| collapsed | boolean | Current collapsed state of tree item. (Inherited from TreeCollapsibleItem) | |
| collapseEl | HTMLElement | null | Element for the collapse/expand toggle indicator, or null if not rendered.(Inherited from TreeCollapsibleItem) | |
| collapsible | boolean | Whether tree item is able to be collapsed or not. (Inherited from TreeCollapsibleItem) | |
| heading | HeadingCache | Cached heading represented by this row. | |
| headingText | string | Rendered plain heading text. | |
| path | string | Heading path through its ancestors. | |
| pusherEl | HTMLElement | Virtual scrolling spacer. | |
| tree | Tree<OutlineTreeItem> | Owning tree. | |
| vChildren | TreeNodeVChildren<OutlineTreeItem, OutlineTreeItem> | Nested heading rows. | |
| view | OutlineView | Owning outline view. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| onCollapseClick($event) | void | Execute collapse functionality on mouse click. (Inherited from TreeCollapsibleItem) | |
| setCollapsed(value, animate?) | Promise<undefined> | Set collapsed state of tree item. (Inherited from TreeCollapsibleItem) | |
| setCollapsible(value) | void | Set 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: