1
0
Fork 0

Client: fix search dropdown

This commit is contained in:
Chocobozzz 2016-10-13 21:59:19 +02:00
parent 5683534893
commit 2ac6c52560
2 changed files with 4 additions and 2 deletions

View file

@ -6,6 +6,7 @@ import { RouterModule } from '@angular/router';
import { removeNgStyles, createNewHosts } from '@angularclass/hmr';
import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
import { DropdownModule } from 'ng2-bootstrap/components/dropdown';
import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar';
import { PaginationModule } from 'ng2-bootstrap/components/pagination';
import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
@ -111,6 +112,7 @@ const APP_PROVIDERS = [
HttpModule,
RouterModule.forRoot(routes),
DropdownModule,
ProgressbarModule,
PaginationModule,
FileUploadModule

View file

@ -3,8 +3,8 @@
<button id="simple-btn-keyboard-nav" type="button" class="btn btn-default" dropdownToggle>
{{ getStringChoice(searchCriterias.field) }} <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="simple-btn-keyboard-nav">
<li *ngFor="let choice of choiceKeys" class="dropdown-item">
<ul class="dropdown-menu" role="menu" aria-labelledby="simple-btn-keyboard-nav" dropdownMenu>
<li *ngFor="let choice of choiceKeys" class="dropdown-item" role="menu-item">
<a class="dropdown-item" href="#" (click)="choose($event, choice)">{{ getStringChoice(choice) }}</a>
</li>
</ul>