File

core/drawer/drawer-outlet/drawer-outlet.component.ts

Implements

OnChanges

Metadata

Index

Properties
Methods
Inputs

Constructor

constructor(drawerService: DrawerService)
Parameters :
Name Type Optional
drawerService DrawerService No

Inputs

open
Type : boolean
position
Type : DrawerPositions

Methods

ngOnChanges
ngOnChanges(changes: SimpleChanges)
Parameters :
Name Type Optional
changes SimpleChanges No
Returns : void

Properties

drawerItems$
Type : Observable<DrawerItem[]>
isLeft$
Type : Observable<boolean>
<nav
  id="navigator"
  class="navigator"
  [attr.aria-label]="'Navigator' | translate"
  [ngClass]="{ open: open }"
  *ngIf="isLeft$ | async; else right"
>
  <ng-template [ngTemplateOutlet]="content"></ng-template>
</nav>

<ng-template #right>
  <aside class="c8y-right-drawer" [cdkTrapFocus]="open" [attr.aria-label]="'User menu' | translate">
    <ng-template [ngTemplateOutlet]="content"></ng-template>
  </aside>
</ng-template>

<ng-template #content>
  <ng-container *ngFor="let drawerItem of drawerItems$ | async">
    <ng-container *c8yComponentOutlet="drawerItem.component; environmentInjector: drawerItem.injector"></ng-container>
  </ng-container>
</ng-template>

results matching ""

    No results matching ""