-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular-table-tree.css
86 lines (72 loc) · 2.23 KB
/
angular-table-tree.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
table {
width: 100%;
}
div{
position: relative;
}
h6 {
display: inline-block;
}
.test{
position: absolute;
right: 0;
bottom: 20px;
}
::ng-deep .highlight-search-text{
color:red;
}
<input
minlength="2"
(keyup)="applyFilter($event.target['value'])"
placeholder="Filter"
#input
/>
<table mat-table [dataSource]="data" class="mat-elevation-z8" >
<ng-container matColumnDef="name" >
<th mat-header-cell *matHeaderCellDef >
<!-- {{data.data | json}} -->
<span [style.paddingLeft.px]="40"> Name </span>
</th>
<td mat-cell *matCellDef="let data" class="note" >
<!-- <mat-checkbox
[checked]="descendantsAllSelected(data)"
(change)="todoItemSelectionToggle(data)"
></mat-checkbox> -->
<mat-checkbox
class="checklist-leaf-node"
[checked]="checklistSelection.isSelected(data)"
(change)="todoItemSelectionToggle(data);"
></mat-checkbox>
<button
mat-icon-button
[style.visibility]="!data.expandable ? 'hidden' : ''"
[style.marginLeft.px]="data.level * 32"
(click)="treeControl.toggle(data)"
>
<mat-icon class="mat-icon-rtl-mirror">
{{treeControl.isExpanded(data) ? 'expand_more' : 'chevron_right'}}
</mat-icon>
</button>
<span [innerHTML]="data.name | highlight : search"></span>
<!-- {{data.name}} -->
</td>
</ng-container>
<ng-container matColumnDef="count">
<th mat-header-cell *matHeaderCellDef>Count</th>
<td mat-cell *matCellDef="let data">{{data.count}}</td>
</ng-container>
<ng-container matColumnDef="quanity">
<th mat-header-cell *matHeaderCellDef>quantity</th>
<td mat-cell *matCellDef="let data;index as i" (click)="getprice(data)">
<ng-container>
<!-- <input type="text" [(ngModel)]="num" /> -->
{{data.product | json}}
</ng-container>
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
<!-- Copyright 2018 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license -->