Skip to content

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 TreeItem

Extends: TreeItem

Properties

PropertyTypeDescription
checkboxElHTMLInputElementThe checkbox that selects the change.
coverElHTMLElementOverlay element covering the tree item, used for visual effects.
(Inherited from TreeItem)
diffPublishFileDiffThe change the row shows.
innerElHTMLElementInner container element holding the tree item content.
(Inherited from TreeItem)
namestringThe displayed name: the file name, without the extension for a note.
pathstringThe vault path.
sectionPublishFileListSectionThe file list holding the 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)

Methods

MethodReturnsDescription
onSelfClick($event)voidExecute item functionality on clicking tree item.
(Inherited from TreeItem)
setChecked(checked)voidSelect or deselect the change.
setClickable(value)voidSet clickable state of tree item.
(Inherited from TreeItem)

Links to this page: