Skip to content

DemoVaultButtonMountState

What the active view held when a button was given up on as never rendered.

Import:

import type { DemoVaultButtonMountState } from '@mnaoumov/obsidian-dev-toolkit/demo-vault-buttons';

Signature:

export interface DemoVaultButtonMountState

Properties

PropertyTypeDescription
activeFilePathnull | stringThe path of the active file, or null when none is open.
activeViewModenull | stringThe mode of the active markdown view, preview or source, or null when there is none.
activeViewTypenull | stringThe type of the most recent leaf's view, such as markdown, or null when there is none.
mountedCaptionsreadonly string[]The captions of the buttons mounted at that moment, in document order.
scrollHeightnull | numberThe reading-view scroller's scrollHeight, or null when it was not found.
scrollTopnull | numberThe reading-view scroller's scrollTop, or null when it was not found.

Links to this page: