Skip to content

ViewState.icon?

ViewState › icon?

Unofficial

Type: IconName

The icon of the view, written by WorkspaceLeaf.getViewState as View.getIcon's result, or undefined when that is empty.

Together with ViewState.title it is what lets a leaf restore the view DEFERRED — with both present WorkspaceLeaf.setViewState can show a placeholder carrying them instead of building the real view.