This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/directives/dropdown-select-direct.html

23 lines
929 B
HTML
Raw Permalink Normal View History

2019-11-12 16:09:47 +00:00
<div class="dropdown-select-element dropdown-select-direct-element" ng-class="selectedItem ? 'has-item' : ''">
<div class="current-item">
<i class="none-icon fa fa-lg" ng-class="noneIcon" ng-if="noneIcon"></i>
<i class="fa fa-lg dropdown-select-direct-icon" ng-repeat="item in items"
ng-class="iconMap[item[iconKey]]"
ng-show="selectedItem[valueKey] == item[valueKey]"></i>
<input type="text" class="lookahead-input form-control" placeholder="{{ placeholder }}"></input>
</div>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu scrollable-menu" role="menu">
<li ng-repeat="item in items">
<a ng-click="setItem(item)">
<i class="fa" ng-class="iconMap[item[iconKey]]"></i>{{ item[titleKey] }}</a>
</li>
</ul>
</div>
</div>