mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 07:21:24 -05:00
19 lines
608 B
HTML
19 lines
608 B
HTML
|
<div class="autocomplete {{ attrs.class }}" id="{{ attrs.id }}">
|
||
|
<input
|
||
|
type="text"
|
||
|
ng-model="searchParam"
|
||
|
placeholder="{{ attrs.placeholder }}"
|
||
|
class="{{ attrs.inputclass }}"
|
||
|
id="{{ attrs.inputid }}"/>
|
||
|
<ul ng-show="completing">
|
||
|
<li
|
||
|
suggestion
|
||
|
ng-repeat="suggestion in suggestions | filter:searchFilter | orderBy:'toString()' track by $index"
|
||
|
index="{{ $index }}"
|
||
|
val="{{ suggestion }}"
|
||
|
ng-class="{ active: ($index === selectedIndex) }"
|
||
|
ng-click="select(suggestion)"
|
||
|
ng-bind-html="suggestion | highlight:searchParam"></li>
|
||
|
</ul>
|
||
|
</div>
|