Israel Lavi | 1994c98 | 2018-05-21 17:42:00 +0300 | [diff] [blame] | 1 | export default ` |
| 2 | <div class="sdc-autocomplete-container" [ngClass]="{'results-shown': autoCompleteResults.length}"> |
| 3 | <sdc-filter-bar |
| 4 | [placeholder]="placeholder" |
| 5 | [label]="label" |
| 6 | [searchQuery]="searchQuery" |
| 7 | (searchQueryChange)="onSearchQueryChanged($event)"> |
| 8 | </sdc-filter-bar> |
| 9 | <ul class="autocomplete-results" [@displayResultsAnimation]="autoCompleteResults.length ?'true':'false'"> |
| 10 | <li *ngFor="let item of autoCompleteResults" |
| 11 | (click)="onItemSelected(item)">{{item.value}}</li> |
| 12 | </ul> |
| 13 | </div> |
| 14 | `; |