2016-12-23 01:42:58 +03:00
|
|
|
<li *ngFor="let item of items; let idx = index" class="menu-item"
|
2017-01-06 13:55:35 +03:00
|
|
|
ngClass="menu-item-depth-{{item.depth}} {{item.active ? 'active' : ''}} menu-item-for-{{item.metadata?.type}}">
|
2017-04-18 16:10:34 +03:00
|
|
|
<label class="menu-item-header" [ngClass]="{disabled: !item.ready}" (click)="activateItem(item)">
|
|
|
|
<span class="operation-type" [ngClass]="item?.metadata?.operation" *ngIf="item?.metadata?.operation"> {{item?.metadata?.operation}} </span>
|
|
|
|
{{item.name}}
|
|
|
|
</label>
|
2017-01-06 14:14:47 +03:00
|
|
|
<ul *ngIf="item.items" class="menu-subitems" [@itemAnimation]="(item.active || item.isGroup) ? 'expanded' : 'collapsed'">
|
2016-12-23 01:42:58 +03:00
|
|
|
<side-menu-items [items]="item.items" (activate)="activateItem($event)"> </side-menu-items>
|
|
|
|
</ul>
|
|
|
|
</li>
|