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 TreeItemExtends: TreeItem
Properties
| Property | Type | Description | |
|---|---|---|---|
| coverEl | HTMLElement | Overlay element covering the tree item, used for visual effects. (Inherited from TreeItem) | |
| innerEl | HTMLElement | Inner container element holding the tree item content. (Inherited from TreeItem) | |
| item | BookmarkItem | Bookmark data represented by this row. | |
| 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 | HTMLSpanElement | Editable title element. | |
| view | BookmarksView | Owning bookmarks view. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| 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) | |
| startRename() | void | Begin editing the bookmark title. | |
| update() | void | Refresh the bookmark title and visual state. |
Links to this page: