SCION Workbench | Projects Overview | Changelog | Contributing | Sponsoring |
---|
SCION Workbench > How To Guides > Desktop
The workbench displays a desktop when the layout is empty (no view and no navigated part).
A desktop can provide instructions for working with the application, display a welcome page, or provide links to open views.
Add the directive wbDesktop
to an <ng-template>
child of the <wb-workbench>
component. The template content will be used as desktop content.
<wb-workbench>
<ng-template wbDesktop>
Welcome
</ng-template>
</wb-workbench>
Using
@if
allows displaying the desktop based on a condition, e.g. the active perspective.
For layouts with a main area, it is recommended to navigate the main area part instead. Refer to How to display content in a part for an example of how to navigate the main area part.