mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
888 B
18 lines
888 B
<span>
|
|
<input type="text" class="form-control" (blur)="blur()" [attr.name]="inputName" (keydown)="onKeyDown($event)" (blur)="markTouched()" [attr.placeholder]="placeholder"
|
|
[formControl]="queryInput"
|
|
autocomplete="off"
|
|
autocorrect="off"
|
|
autocapitalize="off">
|
|
|
|
<div class="items-container" *ngIf="items.length > 0">
|
|
<div class="items" #container>
|
|
<div *ngFor="let item of items; let i = index;" class="item" [class.active]="i === itemSelection" (mousedown)="chooseItem(item)" (mouseover)="selectIndex(i)" [sqxScrollActive]="i === itemSelection" [container]="container">
|
|
<img class="item-image" [attr.src]="item.image" />
|
|
|
|
<span class="item-title">{{item.title}}</span>
|
|
<span class="item-description">{{item.description}}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</span>
|