Skip to content

AllPropertiesView

Unofficial

obsidian#View that displays all properties (frontmatter keys) across the vault.

Import:

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

Signature:

export interface AllPropertiesView extends ItemView

Extends: ItemView

Constructor

new AllPropertiesView(leaf: WorkspaceLeaf)

Constructor.

To extract the constructor type, use ExtractConstructor<ItemView>.

Properties

Property Type Description
actionsEl HTMLElement Container of actions for the view.
(Inherited from ItemView)
app App The Obsidian app instance.
(Inherited from ItemView)
backButtonEl HTMLButtonElement Back button element for changing view history.
(Inherited from ItemView)
canDropAnywhere boolean Whether the view may be dropped anywhere in workspace.
(Inherited from ItemView)
closeable boolean Whether the leaf may close the view.
(Inherited from ItemView)
containerEl HTMLElement The container HTML element for the component.
(Inherited from ItemView)
contentEl HTMLElement The parent element of the content.
(Inherited from ItemView)
forwardButtonEl HTMLButtonElement Forward button element for changing view history.
(Inherited from ItemView)
headerEl HTMLElement Header bar container of view.
(Inherited from ItemView)
icon IconName The icon of the view.
(Inherited from ItemView)
iconEl HTMLElement Icon element for the view (for dragging).
(Inherited from ItemView)
leaf WorkspaceLeaf The leaf of the view.
(Inherited from ItemView)
leftSidebarToggleEl HTMLElement | null Toggle button for the left sidebar, shown on mobile. null on desktop.
(Inherited from ItemView)
moreOptionsButtonEl HTMLAnchorElement Anchor button for revealing more view actions.
(Inherited from ItemView)
navigation boolean Whether or not the view is intended for navigation. If your view is a static view that is not intended to be navigated away, set this to false. (For example: File explorer, calendar, etc.) If your view opens a file or can be otherwise navigated, set this to true. (For example: Markdown editor view, Kanban view, PDF view, etc.)
(Inherited from ItemView)
scope null | Scope Assign an optional scope to your view to register hotkeys for when the view is in focus.
(Inherited from ItemView)
titleContainerEl HTMLElement Container for the title of the view.
(Inherited from ItemView)
titleEl HTMLElement Title element for the view.
(Inherited from ItemView)
titleParentEl HTMLElement Title of the parent.
(Inherited from ItemView)

Methods

Method Returns Description
acceptRename() Promise<void> Try to rename the file.
addAction(icon, title, callback) HTMLElement Add an action to the item view.
(Inherited from ItemView)
cancelRename() void Cancels the rename.
close() Promise<void> Closes the view.
(Inherited from ItemView)
exitRename() void Quits the rename.
getDisplayText() string Get the display text of the view.
(Inherited from ItemView)
getEphemeralState() Record<string, unknown> Get the ephemeral state of the view.
(Inherited from ItemView)
getIcon() IconName Get the icon of the view.
(Inherited from ItemView)
getSideTooltipPlacement() 'left' | 'right' | undefined Returns the placement of the tooltip.
(Inherited from ItemView)
getState() Record<string, unknown> Get the state of the view.
(Inherited from ItemView)
getViewType() typeof ViewType.AllProperties Get the current view type.
handleCopy(event) void Handle copy event on metadata editor and serialize properties.
(Inherited from ItemView)
handleCut(event) void Handle cut event on metadata editor and serialize and remove properties.
(Inherited from ItemView)
handleDrop(event, draggable, isOver) DropResult | null Handle a drop event on this view.
(Inherited from ItemView)
handlePaste(event) void Handle paste event of properties on metadata editor.
(Inherited from ItemView)
isItem(e) boolean Check whether the given object is a property item.
onClose() Promise<void> Called when the view is closed.
(Inherited from ItemView)
onGroupChange() void Handle a linked group change event.
(Inherited from ItemView)
onHeaderMenu(e) void Called when the header context menu is triggered.
(Inherited from ItemView)
onKeyEnterInFocus(event) void Select the item in focus if pressed 'Enter'.
onKeyEnterInRename(event) void Called when 'Enter' is pressed while rename. Accepts the rename.
onMoreOptions(event) void Handle the 'more options' button click event.
(Inherited from ItemView)
onMoreOptionsMenu(e) void Handle the 'more options' context menu event.
(Inherited from ItemView)
onOpen() Promise<void> Called when the view is opened.
(Inherited from ItemView)
onPaneMenu(menu, source) void Populates the pane menu.

(Replaces the previously removed onHeaderMenu and onMoreOptionsMenu)
(Inherited from ItemView)
onResize() void Called when the size of this view is changed.
(Inherited from ItemView)
onTabMenu(menu) void Adds the menu items to the menu.
(Inherited from ItemView)
onToggleShowSearch() void Toggles the visibility of the search.
open(parentEl) Promise<void> Opens the view.
(Inherited from ItemView)
setEphemeralState(state) void Set the ephemeral state of the view.
(Inherited from ItemView)
setShowSearch(e) void Set the visibility of the search filter.
setSortOrder(order) void Updates the sort order and sort by it.
setState(state, result) Promise<void> Set the state of the view.
(Inherited from ItemView)
showSearch() void Shows the search and focus is.
startRename(e) Promise<unknown> Begin inline renaming of a property.
update() void Refresh the properties list.
updateNavButtons() void Update the state of the back/forward navigation buttons.
(Inherited from ItemView)
updateSearch() void Updates the search.

Links to this page: