Skip to content

Workspace.getActiveViewOfType method

Workspace › getActiveViewOfType

Official

Get the currently active view of a given type.

Signature:

getActiveViewOfType(type: Constructor<T>): T | null

Parameters:

ParameterTypeDescription
typeConstructor<T>The view class.

Returns: T | null — The view, or null if the active view is not of this type.

Since: 0.9.16