TreeItem
Unofficial
Represents a single interactive item within a tree view UI component.
Import:
import type { TreeItem } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface TreeItem extends TreeNodeExtends: TreeNode
Properties
| Property | Type | Description | |
|---|---|---|---|
| coverEl | HTMLElement | Overlay element covering the tree item, used for visual effects. | |
| el | HTMLElement | The element of the tree node. (Inherited from TreeNode) | |
| innerEl | HTMLElement | Inner container element holding the tree item content. | |
| selfEl | HTMLElement | The main element representing this tree item in the DOM. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| onSelfClick(event) | void | Execute item functionality on clicking tree item. | |
| setClickable(value) | void | Set clickable state of tree item. |
Links to this page: