2019-07-09 16:55:13 +02:00
|
|
|
<ul class="uk-nav uk-nav-default sidebar uk-overflow-auto" style="max-height: 85vh">
|
|
|
|
<li class="uk-nav-header" *ngFor="let menu of menuItems">
|
2019-04-22 12:32:25 +02:00
|
|
|
<a *ngIf="menu.rootItem.route && menu.rootItem.route != ''"
|
2019-07-09 16:55:13 +02:00
|
|
|
[routerLink]="menu.rootItem.route" routerLinkActive="uk-link" [routerLinkActiveOptions]="{ exact: true }" [queryParams]=menu.rootItem.params>
|
2019-04-22 12:32:25 +02:00
|
|
|
<span><span class="uk-margin-small-right uk-icon" [attr.uk-icon]=menu.ukIcon></span> {{menu.rootItem.title}}</span>
|
|
|
|
</a>
|
|
|
|
<a *ngIf="(!menu.rootItem.route || menu.rootItem.route == '') && (menu.rootItem.url && menu.rootItem.url != '')"
|
2019-07-09 16:55:13 +02:00
|
|
|
[href]="menu.rootItem.url" routerLinkActive="uk-link" [routerLinkActiveOptions]="{ exact: true }" target="_blank">
|
2019-04-22 12:32:25 +02:00
|
|
|
<span><span class="uk-margin-small-right uk-icon" [attr.uk-icon]=menu.ukIcon></span> {{menu.rootItem.title}}</span>
|
|
|
|
</a>
|
|
|
|
<span *ngIf="!menu.rootItem.route || menu.rootItem.route == ''"><span class="uk-margin-small-right uk-icon" [attr.uk-icon]=menu.ukIcon></span> {{menu.rootItem.title}}</span>
|
|
|
|
<ul *ngIf="menu.items.length > 0" class="uk-nav-sub">
|
|
|
|
<li *ngFor="let item of menu.items">
|
2019-07-09 16:55:13 +02:00
|
|
|
<a *ngIf="item.rootItem.route && item.rootItem.route != ''" [routerLink]="item.rootItem.route" routerLinkActive="uk-link" [routerLinkActiveOptions]="{ exact: true }" [queryParams]=item.rootItem.params>
|
2019-04-22 12:32:25 +02:00
|
|
|
<span>{{item.rootItem.title}}</span>
|
|
|
|
</a>
|
|
|
|
<a *ngIf="(!item.rootItem.route || item.rootItem.route == '') && (item.rootItem.url && item.rootItem.url != '')"
|
2019-07-09 16:55:13 +02:00
|
|
|
[href]="item.rootItem.url" [routerLinkActiveOptions]="{ exact: true }" routerLinkActive="uk-link" target="_blank">
|
2019-04-22 12:32:25 +02:00
|
|
|
<span>{{item.rootItem.title}}</span>
|
|
|
|
</a>
|
|
|
|
<ul *ngIf="item.items.length > 0" class="uk-nav-sub">
|
|
|
|
<li *ngFor="let subItem of item.items">
|
2019-07-09 16:55:13 +02:00
|
|
|
<a *ngIf="subItem.route && subItem.route != ''" [routerLink]="subItem.route" [routerLinkActiveOptions]="{ exact: true }" routerLinkActive="uk-link" [queryParams]=subItem.params>
|
2019-04-22 12:32:25 +02:00
|
|
|
<span>{{subItem.title}}</span>
|
|
|
|
</a>
|
|
|
|
<a *ngIf="(!subItem.route || subItem.route == '') && (subItem.url && subItem.url != '')"
|
2019-07-09 16:55:13 +02:00
|
|
|
[href]="subItem.url" [routerLinkActiveOptions]="{ exact: true }" routerLinkActive="uk-link" target="_blank">
|
2019-04-22 12:32:25 +02:00
|
|
|
<span>{{subItem.title}}</span>
|
|
|
|
</a>
|
|
|
|
<span *ngIf="!subItem.route || subItem.route == ''">{{subItem.title}}</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|