2016-05-03 21:04:57 +02:00
|
|
|
<div class="col-sm-4 col-md-5 pull-right">
|
2016-05-09 21:43:52 +02:00
|
|
|
<form class="navbar-form" role="search" #SearchForm="ngForm">
|
2016-05-03 21:04:57 +02:00
|
|
|
<div class="input-group">
|
2016-05-09 21:43:52 +02:00
|
|
|
<input type="text" class="form-control" placeholder="Search" (keyup)="onSearchChange($event)"
|
2016-05-10 10:59:12 +02:00
|
|
|
(blur)="onFocusLost($event)" (focus)="onFocus($evnet)" [(ngModel)]="searchText" #name="ngForm"
|
|
|
|
ngControl="search"
|
2016-05-09 21:43:52 +02:00
|
|
|
name="srch-term" id="srch-term" autocomplete="off" >
|
2016-05-03 21:04:57 +02:00
|
|
|
|
|
|
|
<div class="autocomplete-list" *ngIf="autoCompleteItems.length > 0" >
|
2016-05-10 10:59:12 +02:00
|
|
|
<div class="autocomplete-item" *ngFor="let item of autoCompleteItems" (mousedown)="search(item)">
|
2016-05-03 21:04:57 +02:00
|
|
|
{{item.preText}}<strong>{{item.highLightText}}</strong>{{item.postText}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group-btn" style="display: block">
|
2016-05-09 21:43:52 +02:00
|
|
|
<button class="btn btn-default dropdown-toggle" type="button" (click)="onSearch()"><i
|
|
|
|
class="glyphicon glyphicon-search"></i>
|
2016-05-03 21:04:57 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|