Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | <si-dashboard #dashboard [sticky]="true"> <!-- Do not replace the default title below with [heading]="pageTitle()" on si-dashboard. Forwarding the header slot always fills it, even if no custom header is supplied. Angular then never renders the heading fallback of si-dashboard, so the default title is rendered here. --> <ng-container header> @if (isDashboardVisible()) { <ng-content select="[header]"> <ng-container *ngTemplateOutlet="pageHeader" /> </ng-content> } @else { <ng-container *ngTemplateOutlet="pageHeader" /> } </ng-container> <si-dashboard-toolbar #toolbar menubar [class.d-none]="!isDashboardVisible()" [primaryEditActions]="(primaryEditActions$ | async) ?? []" [secondaryEditActions]="(secondaryEditActions$ | async) ?? []" [disabled]="(grid.isLoading | async) ?? false" [hideEditButton]="hideEditButton()" [showEditButtonLabel]="showEditButtonLabel()" [grid]="grid" [(editable)]="editable" (save)="grid.save()" > <ng-content select="[filters-slot]" filters-slot /> </si-dashboard-toolbar> @if (isDashboardVisible()) { <div menubar class="dashboard-notifications flex-column gap-4 mt-4"> <ng-content select="si-inline-notification" /> </div> } <div dashboard class="d-contents"> <si-grid #grid [class.d-none]="!isDashboardVisible()" [gridConfig]="config()?.grid" [dashboardId]="dashboardId()" [widgetCatalog]="widgetCatalog()" [hideProgressIndicator]="hideProgressIndicator()" [widgetInstanceEditorDialogComponent]="widgetInstanceEditorDialogComponent()" [emitWidgetInstanceEditEvents]="true" [(editable)]="editable" (isModified)="onModified($event)" (widgetInstanceEdit)="editWidgetInstance($event)" > <ng-content select="[empty-state]" empty-state /> </si-grid> <ng-container #catalogHost /> </div> </si-dashboard> <ng-template #pageHeader> @if (pageTitle()) { <div class="si-layout-header"> <h2 class="si-layout-title si-layout-top-element">{{ pageTitle() | translate }}</h2> </div> } </ng-template> |