Commit 9b1fb829fbead2ba533503a4514c6e325f83f036

Authored by trainee
1 parent 53e0945f
Exists in master

search ได้หมดแล้ววว เย้

src/app/dashboard/dashboard.component.html
... ... @@ -23,11 +23,7 @@
23 23 <div class="input-icon right" style="margin-left: 820px; margin-top: -20px;" >
24 24 <i class="icon-magnifier">
25 25 </i>
26   - <input
27   - type="text"
28   - placeholder="Search.."
29   - class="form-control sbold font"
30   - [(ngModel)]="FilterSearch">
  26 + <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearch">
31 27 </div>
32 28 </h1>
33 29 <hr>
... ... @@ -79,7 +75,7 @@
79 75 <div class="input-icon right" style="margin-left: 820px; margin-top: -20px;" >
80 76 <i class="icon-magnifier">
81 77 </i>
82   - <input type="text" placeholder="Search.." class="form-control sbold font">
  78 + <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearchOnHold">
83 79 </div>
84 80 </h1>
85 81 <hr>
... ... @@ -87,7 +83,7 @@
87 83 </div>
88 84 <div class="panel-body">
89 85 <div class="row">
90   - <div class="col-lg-4 col-md-3 col-sm-6 col-xs-12" *ngFor="let item of resultDataOnHold">
  86 + <div class="col-lg-4 col-md-3 col-sm-6 col-xs-12" *ngFor="let item of resultDataOnHold | filter:FilterSearchOnHold: '' ">
91 87 <a class="dashboard-stat dashboard-stat-v2 red "
92 88 href="{{item.link}}"
93 89 target="_blank"
... ...
src/app/dashboard/dashboard.component.ts
... ... @@ -12,6 +12,7 @@ import { async } from &#39;rxjs/internal/scheduler/async&#39;;
12 12 export class DashboardComponent implements OnInit {
13 13  
14 14 FilterSearch = '';
  15 + FilterSearchOnHold = '';
15 16  
16 17  
17 18 getColorDay(days){
... ...