forked from patternfly/angular-patternfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilter-fields.html
More file actions
34 lines (34 loc) · 1.48 KB
/
Copy pathfilter-fields.html
File metadata and controls
34 lines (34 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<div class="filter-pf filter-fields">
<form>
<div class="form-group toolbar-pf-filter">
<div class="input-group">
<div dropdown class="input-group-btn">
<button dropdown-toggle type="button" class="btn btn-default dropdown-toggle filter-fields" aria-haspopup="true" aria-expanded="false" tooltip="Filter by" tooltip-placement="top">
{{currentField.title}}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li ng-repeat="item in config.fields">
<a class="filter-field" role="menuitem" tabindex="-1" ng-click="selectField(item)">
{{item.title}}
</a>
</li>
</ul>
</div>
<div ng-if="currentField.filterType !== 'select'">
<input class="form-control" type="{{currentField.filterType}}" ng-model="config.currentValue"
placeholder="{{currentField.placeholder}}"
ng-keypress="onValueKeyPress($event)"/>
</div>
<div ng-if="currentField.filterType === 'select'">
<select pf-select class="form-control filter-select" id="currentValue"
ng-model="config.currentValue"
ng-options="filterValue for filterValue in currentField.filterValues"
ng-change="selectValue(config.currentValue)">
<option value="">{{currentField.placeholder}}</option>
</select>
</div>
</div>
</div>
</form>
</div>