forked from patternfly/angular-patternfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselect.html
More file actions
18 lines (18 loc) · 732 Bytes
/
Copy pathselect.html
File metadata and controls
18 lines (18 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div uib-dropdown class="btn-group">
<button uib-dropdown-toggle type="button" class="btn btn-default">
{{$ctrl.getDisplayValue($ctrl.selected || $ctrl.emptyValue)}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu>
<li ng-if="$ctrl.emptyValue" ng-class="{'selected': !$ctrl.selected}">
<a href="javascript:void(0);" role="menuitem" tabindex="-1" ng-click="$ctrl.selectItem()">
{{$ctrl.emptyValue}}
</a>
</li>
<li ng-repeat="item in $ctrl.options" ng-class="{'selected': item === $ctrl.selected}">
<a href="javascript:void(0);" role="menuitem" tabindex="-1" ng-click="$ctrl.selectItem(item)">
{{$ctrl.getDisplayValue(item)}}
</a>
</li>
</ul>
</div>