PublishFileTreeItem
Unofficial
A file row in one of the Publish changes dialog’s file lists.
Import:
import type { PublishFileTreeItem } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface PublishFileTreeItem extends TreeItemExtends: TreeItem
Properties
| Property | Type | Description | |
|---|---|---|---|
| checkboxEl | HTMLInputElement | The checkbox that selects the change. | |
| coverEl | HTMLElement | Overlay element covering the tree item, used for visual effects. (Inherited from TreeItem) | |
| diff | PublishFileDiff | The change the row shows. | |
| innerEl | HTMLElement | Inner container element holding the tree item content. (Inherited from TreeItem) | |
| name | string | The displayed name: the file name, without the extension for a note. | |
| path | string | The vault path. | |
| section | PublishFileListSection | The file list holding the 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) |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| onSelfClick($event) | void | Execute item functionality on clicking tree item. (Inherited from TreeItem) | |
| setChecked(checked) | void | Select or deselect the change. | |
| setClickable(value) | void | Set clickable state of tree item. (Inherited from TreeItem) |
Links to this page: