2017-09-20 09:50:53 +00:00
|
|
|
<vn-vertical class="dropdown-body" ng-show="$ctrl.show && $ctrl.itemsFiltered.length > 1">
|
2017-06-22 10:03:01 +00:00
|
|
|
<vn-one ng-show="$ctrl.filter" class="filter">
|
|
|
|
<vn-horizontal>
|
2017-09-14 11:40:55 +00:00
|
|
|
<input vn-one placeholder="{{'Search' | translate}}" type="text" ng-model="$ctrl.search"/>
|
2017-06-22 10:03:01 +00:00
|
|
|
<vn-icon vn-none icon="clear" ng-click="$ctrl.clearSearch()"></vn-icon>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<ul class="dropdown">
|
2017-09-20 09:50:53 +00:00
|
|
|
<li
|
|
|
|
ng-repeat="item in $ctrl.itemsFiltered track by $index"
|
|
|
|
ng-click="$ctrl.selected = item; $ctrl.show = false"
|
|
|
|
ng-class="{'active': $index === $ctrl.activeOption}"
|
|
|
|
ng-mouseover="$ctrl.activeOption = $index"
|
|
|
|
>
|
|
|
|
<div ng-transclude="vnItem">{{::item.name}}</div>
|
|
|
|
</li>
|
|
|
|
<li ng-if="$ctrl.showLoadMore" class="dropdown__loadMore" tabIndex="-1" ng-class="{'active': $ctrl.itemsFiltered.length === $ctrl.activeOption}" ng-click="$ctrl.loadMore();$ctrl.show = true;" translate="Load More"></li>
|
2017-06-22 10:03:01 +00:00
|
|
|
</ul>
|
|
|
|
</vn-one>
|
|
|
|
</vn-vertical>
|