Skip to content

PropertyTreeItem

Unofficial

A property row in the all properties sidebar.

Import:

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

Signature:

export interface PropertyTreeItem extends TreeItem

Extends: TreeItem

Properties

PropertyTypeDescription
appAppApplication owning the view.
coverElHTMLElementOverlay element covering the tree item, used for visual effects.
(Inherited from TreeItem)
flairElHTMLSpanElementProperty occurrence count element.
iconElHTMLDivElementProperty type icon.
innerElHTMLElementInner container element holding the tree item content.
(Inherited from TreeItem)
propertyPropertyInfoProperty metadata assigned before the row is displayed.
pusherElHTMLElementVirtual scrolling spacer.
selectablebooleanWhether the item can be added to the tree's selection. false for rows such as bookmark groups.
(Inherited from TreeItem)
selfElHTMLElementThe main element representing this tree item in the DOM.
(Inherited from TreeItem)
titleElHTMLDivElementEditable property name element.
vChildrenTreeNodeVChildren<PropertyTreeItem, PropertyTreeItem>Virtual child rows.
viewAllPropertiesViewOwning property view.

Methods

MethodReturnsDescription
displayError(message)voidShow a temporary error tooltip.
onSelfClick($event)voidExecute item functionality on clicking tree item.
(Inherited from TreeItem)
setClickable(value)voidSet clickable state of tree item.
(Inherited from TreeItem)
setProperty(property, count)thisAssign property metadata and its occurrence count.
startRename()voidStart editing the property name.
stopRename()voidStop editing the property name.
updateTitle()voidRestore the property name label.

Links to this page: