PropertyTreeItem
Unofficial
A property row in the all properties sidebar.
Import:
import type { PropertyTreeItem } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface PropertyTreeItem extends TreeItemExtends: TreeItem
Properties
| Property | Type | Description | |
|---|---|---|---|
| app | App | Application owning the view. | |
| coverEl | HTMLElement | Overlay element covering the tree item, used for visual effects. (Inherited from TreeItem) | |
| flairEl | HTMLSpanElement | Property occurrence count element. | |
| iconEl | HTMLDivElement | Property type icon. | |
| innerEl | HTMLElement | Inner container element holding the tree item content. (Inherited from TreeItem) | |
| property | PropertyInfo | Property metadata assigned before the row is displayed. | |
| pusherEl | HTMLElement | Virtual scrolling spacer. | |
| selectable | boolean | Whether the item can be added to the tree's selection. false for rows such as bookmark groups.(Inherited from TreeItem) | |
| selfEl | HTMLElement | The main element representing this tree item in the DOM. (Inherited from TreeItem) | |
| titleEl | HTMLDivElement | Editable property name element. | |
| vChildren | TreeNodeVChildren<PropertyTreeItem, PropertyTreeItem> | Virtual child rows. | |
| view | AllPropertiesView | Owning property view. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| displayError(message) | void | Show a temporary error tooltip. | |
| onSelfClick($event) | void | Execute item functionality on clicking tree item. (Inherited from TreeItem) | |
| setClickable(value) | void | Set clickable state of tree item. (Inherited from TreeItem) | |
| setProperty(property, count) | this | Assign property metadata and its occurrence count. | |
| startRename() | void | Start editing the property name. | |
| stopRename() | void | Stop editing the property name. | |
| updateTitle() | void | Restore the property name label. |
Links to this page: