Files
mempool/frontend/src/app/components/search-form/search-form.component.html
T

13 lines
888 B
HTML
Raw Normal View History

2020-09-22 05:51:34 +07:00
<form [formGroup]="searchForm" (submit)="searchForm.valid && search()" novalidate>
<div class="d-flex">
<div class="search-box-container mr-2">
2022-08-25 19:29:21 +04:00
<input (focus)="focus$.next($any($event).target.value)" (click)="click$.next($any($event).target.value)" formControlName="searchText" type="text" class="form-control" i18n-placeholder="search-form.searchbar-placeholder" placeholder="Search the full Bitcoin ecosystem">
<app-search-results #searchResults [results]="typeAhead$ | async" [searchTerm]="searchForm.get('searchText').value" (selectedResult)="selectedResult($event)"></app-search-results>
</div>
2020-02-17 20:39:20 +07:00
<div>
2020-12-03 18:34:19 +07:00
<button [disabled]="isSearching" type="submit" class="btn btn-block btn-primary"><fa-icon [icon]="['fas', 'search']" [fixedWidth]="true" i18n-title="search-form.search-title" title="Search"></fa-icon></button>
</div>
2020-02-17 20:39:20 +07:00
</div>
</form>