mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 20:54:53 -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>
|