|
2 | 2 | <igx-nav-drawer #navdrawer [enableGestures]="drawerState.enableGestures" [isOpen]="drawerState.open" [(pin)]="drawerState.pin"
|
3 | 3 | [position]="drawerState.position" [width]="drawerState.width" (opened)="refresh()" (closed)="refresh()">
|
4 | 4 | <ng-template igxDrawer>
|
5 |
| - <nav> |
6 |
| - <div class="nav-header"> |
7 |
| - <img class="logo" src="assets/images/rsrcs/igniteui-angular_logo.svg" alt="Ignite UI for Angular Logo"> |
8 |
| - </div> |
| 5 | + <div class="nav-header"> |
| 6 | + <img class="logo" src="assets/images/rsrcs/igniteui-angular_logo.svg" alt="Ignite UI for Angular Logo"> |
| 7 | + </div> |
9 | 8 |
|
10 |
| - <!-- Home --> |
11 |
| - <span igxDrawerItem igxRipple [routerLink]="homeRouteItem.path" routerLinkActive="igx-nav-drawer__item--active"> |
12 |
| - <igx-icon family="material">home</igx-icon> |
13 |
| - <span>{{homeRouteItem.displayName}}</span> |
14 |
| - </span> |
| 9 | + <!-- Home --> |
| 10 | + <span igxDrawerItem igxRipple [routerLink]="homeRouteItem.path" routerLinkActive="igx-nav-drawer__item--active"> |
| 11 | + <igx-icon family="material">home</igx-icon> |
| 12 | + <span>{{homeRouteItem.displayName}}</span> |
| 13 | + </span> |
15 | 14 |
|
16 |
| - <!-- Search --> |
17 |
| - <igx-input-group type="search" class="searchGroup"> |
18 |
| - <igx-prefix> |
19 |
| - <igx-icon>search</igx-icon> |
20 |
| - </igx-prefix> |
21 |
| - <input #search igxInput placeholder="Search samples" (focus)="createSearchSub(search)" [(ngModel)]="searchValue"> |
22 |
| - <igx-suffix *ngIf="search.value.length > 0" (click)="clearSearchValue()"> |
23 |
| - <igx-icon>clear</igx-icon> |
24 |
| - </igx-suffix> |
25 |
| - </igx-input-group> |
| 15 | + <!-- Search --> |
| 16 | + <igx-input-group type="search" class="searchGroup"> |
| 17 | + <igx-prefix> |
| 18 | + <igx-icon>search</igx-icon> |
| 19 | + </igx-prefix> |
| 20 | + <input #search igxInput placeholder="Search samples" (focus)="createSearchSub(search)" [(ngModel)]="searchValue"> |
| 21 | + <igx-suffix *ngIf="search.value.length > 0" (click)="clearSearchValue()"> |
| 22 | + <igx-icon>clear</igx-icon> |
| 23 | + </igx-suffix> |
| 24 | + </igx-input-group> |
26 | 25 |
|
27 |
| - <igx-tree #tree> |
28 |
| - <igx-tree-node [data]="item.name" *ngFor="let item of currentNavItems"> |
29 |
| - {{ item.name }} |
30 |
| - <igx-tree-node [data]="route.displayName" *ngFor="let route of item.children"> |
31 |
| - <a igxTreeNodeLink [routerLink]="route.path">{{ route.displayName }}</a> |
32 |
| - </igx-tree-node> |
| 26 | + <igx-tree #tree> |
| 27 | + <igx-tree-node [data]="item.name" *ngFor="let item of currentNavItems"> |
| 28 | + {{ item.name }} |
| 29 | + <igx-tree-node [data]="route.displayName" *ngFor="let route of item.children"> |
| 30 | + <a igxTreeNodeLink [routerLink]="route.path">{{ route.displayName }}</a> |
33 | 31 | </igx-tree-node>
|
34 |
| - </igx-tree> |
| 32 | + </igx-tree-node> |
| 33 | + </igx-tree> |
35 | 34 |
|
36 |
| - <!-- <span *ngFor="let navItem of currentNavItems"> |
| 35 | + <!-- <span *ngFor="let navItem of currentNavItems"> |
37 | 36 |
|
38 |
| - <span igxDrawerItem igxRipple routerLinkActive="igx-nav-drawer__item--active navdrawer-ellipsis" (click)="toggleParent('header' + navItem.name)"> |
39 |
| - <igx-icon family="material">{{convertNodeStateToIcon('header' + navItem.name)}}</igx-icon> |
40 |
| - <span class="navdrawer-ellipsis" style="vertical-align: middle">{{navItem.name}}</span> |
41 |
| - </span> |
| 37 | + <span igxDrawerItem igxRipple routerLinkActive="igx-nav-drawer__item--active navdrawer-ellipsis" (click)="toggleParent('header' + navItem.name)"> |
| 38 | + <igx-icon family="material">{{convertNodeStateToIcon('header' + navItem.name)}}</igx-icon> |
| 39 | + <span class="navdrawer-ellipsis" style="vertical-align: middle">{{navItem.name}}</span> |
| 40 | + </span> |
42 | 41 |
|
43 |
| - <span [id]="'header' + navItem.name" style="display:none"> |
44 |
| - <span [id]="'child' + routeItem.displayName" class="innerItem navdrawer-ellipsis" *ngFor="let routeItem of navItem.children" igxDrawerItem igxRipple |
45 |
| - [routerLink]="routeItem.path" routerLinkActive="igx-nav-drawer__item--active"> |
46 |
| - {{routeItem.displayName}} |
47 |
| - </span> |
| 42 | + <span [id]="'header' + navItem.name" style="display:none"> |
| 43 | + <span [id]="'child' + routeItem.displayName" class="innerItem navdrawer-ellipsis" *ngFor="let routeItem of navItem.children" igxDrawerItem igxRipple |
| 44 | + [routerLink]="routeItem.path" routerLinkActive="igx-nav-drawer__item--active"> |
| 45 | + {{routeItem.displayName}} |
48 | 46 | </span>
|
49 |
| - </span> --> |
50 |
| - </nav> |
| 47 | + </span> |
| 48 | + </span> --> |
51 | 49 | </ng-template>
|
52 | 50 | </igx-nav-drawer>
|
53 | 51 |
|
|
0 commit comments