added angular flex module, fixed sidenav still wip
parent
cc29a9c98d
commit
658b79402b
@ -1,16 +1,15 @@
|
|||||||
<a mat-list-item [ngStyle]="{'padding-left': (depth * 12) + 'px'}" (click)="onItemSelected(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">
|
||||||
[ngClass]="{'active': item.route ? router.isActive(item.route, true): false, 'expanded': expanded}"
|
<span (click)="onItemSelected(item)">
|
||||||
class="menu-list-item">
|
<mat-icon class="routeIcon">{{item.iconName}}</mat-icon>
|
||||||
<mat-icon class="routeIcon">{{item.iconName}}</mat-icon>
|
{{item.displayName}}
|
||||||
{{item.displayName}}
|
</span>
|
||||||
<span fxFlex *ngIf="item.children && item.children.length">
|
<span fxFlex *ngIf="item.children && item.children.length" (click)="expand(item)">
|
||||||
<span fxFlex></span>
|
<span fxFlex></span>
|
||||||
<mat-icon [@indicatorRotate]="expanded ? 'expanded': 'collapsed'">
|
<mat-icon [@indicatorRotate]="expanded ? 'expanded': 'collapsed'">
|
||||||
expand_more
|
expand_more
|
||||||
</mat-icon>
|
</mat-icon>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<div *ngIf="expanded">
|
<div *ngIf="expanded">
|
||||||
<app-menu-list-item *ngFor="let child of item.children" [item]="child" [depth]="depth+1">
|
<app-menu-list-item *ngFor="let child of item.children" [item]="child" [depth]="depth+1"> </app-menu-list-item>
|
||||||
</app-menu-list-item>
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue