Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.48 KB

how-to-provide-desktop.md

File metadata and controls

35 lines (25 loc) · 1.48 KB

SCION Workbench

SCION Workbench Projects Overview Changelog Contributing Sponsoring

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.

How to provide a desktop

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.