aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-main/misc/simple-search-input.component.html
blob: 1e2f6c6a914c1531e9107fb01e009a54b53c39e3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
                  













                                                                                                                      




                                                                                                                                            
<div class="root">
  <div class="input-group has-feedback has-clear">
    <input
      #ref
      type="text"
      [(ngModel)]="value"
      (keyup.enter)="sendSearch()"
      [hidden]="!inputShown"
      [name]="name"
      [placeholder]="placeholder"
    >

    <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="onResetFilter()"></a>
    <span class="sr-only" i18n>Clear filters</span>
  </div>

  <my-global-icon iconName="search" aria-label="Search" role="button" (click)="onIconClick()" [title]="iconTitle"></my-global-icon>

  <my-global-icon *ngIf="!alwaysShow && inputShown" i18n-title title="Close search" iconName="cross" (click)="hideInput()"></my-global-icon>
</div>