|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
<a mat-list-item [ngStyle]="{'padding-left': (depth * 12) + 'px'}" (click)="onItemSelected(item)"
|
|
|
|
|
[ngClass]="{'active': item.route ? router.isActive(item.route, true): false, 'expanded': expanded}"
|
|
|
|
|
class="menu-list-item">
|
|
|
|
|
<a mat-list-item [ngStyle]="{'padding-left': (depth * 12) + 'px'}" [ngClass]="{'active': item.route ? router.isActive(item.route, true): false, 'expanded': expanded}" class="menu-list-item">
|
|
|
|
|
<span (click)="onItemSelected(item)">
|
|
|
|
|
<mat-icon class="routeIcon">{{item.iconName}}</mat-icon>
|
|
|
|
|
{{item.displayName}}
|
|
|
|
|
<span fxFlex *ngIf="item.children && item.children.length">
|
|
|
|
|
</span>
|
|
|
|
|
<span fxFlex *ngIf="item.children && item.children.length" (click)="expand(item)">
|
|
|
|
|
<span fxFlex></span>
|
|
|
|
|
<mat-icon [@indicatorRotate]="expanded ? 'expanded': 'collapsed'">
|
|
|
|
|
expand_more
|
|
|
|
@ -11,6 +11,5 @@
|
|
|
|
|
</span>
|
|
|
|
|
</a>
|
|
|
|
|
<div *ngIf="expanded">
|
|
|
|
|
<app-menu-list-item *ngFor="let child of item.children" [item]="child" [depth]="depth+1">
|
|
|
|
|
</app-menu-list-item>
|
|
|
|
|
<app-menu-list-item *ngFor="let child of item.children" [item]="child" [depth]="depth+1"> </app-menu-list-item>
|
|
|
|
|
</div>
|
|
|
|
|