Commit 9b1fb829fbead2ba533503a4514c6e325f83f036
1 parent
53e0945f
Exists in
master
search ได้หมดแล้ววว เย้
Showing
2 changed files
with
4 additions
and
7 deletions
Show diff stats
src/app/dashboard/dashboard.component.html
| @@ -23,11 +23,7 @@ | @@ -23,11 +23,7 @@ | ||
| 23 | <div class="input-icon right" style="margin-left: 820px; margin-top: -20px;" > | 23 | <div class="input-icon right" style="margin-left: 820px; margin-top: -20px;" > |
| 24 | <i class="icon-magnifier"> | 24 | <i class="icon-magnifier"> |
| 25 | </i> | 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 | </div> | 27 | </div> |
| 32 | </h1> | 28 | </h1> |
| 33 | <hr> | 29 | <hr> |
| @@ -79,7 +75,7 @@ | @@ -79,7 +75,7 @@ | ||
| 79 | <div class="input-icon right" style="margin-left: 820px; margin-top: -20px;" > | 75 | <div class="input-icon right" style="margin-left: 820px; margin-top: -20px;" > |
| 80 | <i class="icon-magnifier"> | 76 | <i class="icon-magnifier"> |
| 81 | </i> | 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 | </div> | 79 | </div> |
| 84 | </h1> | 80 | </h1> |
| 85 | <hr> | 81 | <hr> |
| @@ -87,7 +83,7 @@ | @@ -87,7 +83,7 @@ | ||
| 87 | </div> | 83 | </div> |
| 88 | <div class="panel-body"> | 84 | <div class="panel-body"> |
| 89 | <div class="row"> | 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 | <a class="dashboard-stat dashboard-stat-v2 red " | 87 | <a class="dashboard-stat dashboard-stat-v2 red " |
| 92 | href="{{item.link}}" | 88 | href="{{item.link}}" |
| 93 | target="_blank" | 89 | target="_blank" |
src/app/dashboard/dashboard.component.ts
| @@ -12,6 +12,7 @@ import { async } from 'rxjs/internal/scheduler/async'; | @@ -12,6 +12,7 @@ import { async } from 'rxjs/internal/scheduler/async'; | ||
| 12 | export class DashboardComponent implements OnInit { | 12 | export class DashboardComponent implements OnInit { |
| 13 | 13 | ||
| 14 | FilterSearch = ''; | 14 | FilterSearch = ''; |
| 15 | + FilterSearchOnHold = ''; | ||
| 15 | 16 | ||
| 16 | 17 | ||
| 17 | getColorDay(days){ | 18 | getColorDay(days){ |