-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathemp-tree.component.html
24 lines (20 loc) · 995 Bytes
/
emp-tree.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<mat-tree [dataSource]="dataSource" [treeControl]="treeControl">
<mat-tree-node *matTreeNodeDef="let node" matTreeNodePadding>
<button mat-icon-button disabled></button>
{{node.item}}
</mat-tree-node>
<mat-tree-node *matTreeNodeDef="let node; when: hasChild" matTreeNodePadding>
<button mat-icon-button
[attr.aria-label]="'toggle ' + node.item" matTreeNodeToggle>
<mat-icon class="mat-icon-rtl-mirror">
{{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
</mat-icon>
</button>
<a mat-button *ngIf="node.id !== 0" [routerLink]="['/', 'emp',node.id]">{{node.item}}</a>
<span *ngIf="node.id === 0" >{{node.item}}</span>
<app-sal-minimal *ngIf="node.id !== 0" [empId]="node.id"></app-sal-minimal>
<mat-progress-bar *ngIf="node.isLoading"
mode="indeterminate"
class="example-tree-progress-bar"></mat-progress-bar>
</mat-tree-node>
</mat-tree>