Skip to content

getViewConstructorByViewType

getViewConstructorByViewType<TView>(app, viewType): Constructor<TView>

Defined in: src/obsidian/implementations/Constructors/Views/getViewConstructorByViewType.ts:15

Get the view constructor by view type.

Type Parameters

TView extends View = View

Parameters

app

App

The app.

viewType

string

The view type.

Returns

Constructor<TView>

The view constructor.