Skip to content

ViewState

Official

The state of the view.

Import:

import type { ViewState } from 'obsidian';

Signature:

export interface ViewState

Properties

PropertyTypeDescription
active?booleanWhether the view is active.
group?WorkspaceLeafThe leaf group of the view.
pinned?booleanWhether the view is pinned.
state?Record<string, unknown>The state of the view.
typestringThe type of the view.

Links to this page: