Skip to content

Workspace.getActiveLeafOfViewType method

Workspace › getActiveLeafOfViewType

Unofficial

Get the active leaf of the given view type.

Signature:

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

Parameters:

Parameter Type Description
type Constructor<T> The type of the view to get.

Returns: null | TThe active leaf of the given type or null.