Skip to content

BookmarkTreeItem

Unofficial

Common row surface shared by bookmark entries and bookmark groups.

Import:

import type { BookmarkTreeItem } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface BookmarkTreeItem extends TreeItem

Extends: TreeItem

Properties

PropertyTypeDescription
coverElHTMLElementOverlay element covering the tree item, used for visual effects.
(Inherited from TreeItem)
innerElHTMLElementInner container element holding the tree item content.
(Inherited from TreeItem)
itemBookmarkItemBookmark data represented by this row.
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)
titleElHTMLSpanElementEditable title element.
viewBookmarksViewOwning bookmarks view.

Methods

MethodReturnsDescription
onSelfClick($event)voidExecute item functionality on clicking tree item.
(Inherited from TreeItem)
setClickable(value)voidSet clickable state of tree item.
(Inherited from TreeItem)
startRename()voidBegin editing the bookmark title.
update()voidRefresh the bookmark title and visual state.

Links to this page: