mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 20:44:09 +00:00
18 lines
608 B
HTML
Executable file
18 lines
608 B
HTML
Executable file
<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>
|