-
Notifications
You must be signed in to change notification settings - Fork 55
/
filter-lazy-example.component.html
80 lines (80 loc) · 2.45 KB
/
filter-lazy-example.component.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<div class="padding-15">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<p>Warning: This example is for development testing purposes. It is not an official pattern and subject to change</p>
<p>This ensures filters can be added lazily. Click the "Load Filters" button to add more filter options</p>
<p>The 'Week Day' filter field is shown as a type ahead for testing</p>
<pfng-filter [config]="filterConfig"
(onChange)="filterChanged($event)"
(onFieldSelect)="filterFieldSelected($event)"
(onTypeAhead)="filterQueries($event)"></pfng-filter>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="padding-top-15">
<button class="btn btn-default primary-action" type="button"
(click)="loadFilters()">Load Filters
</button>
</div>
</div>
</div>
<div class="row padding-top-10">
<div class="col-sm-12">
<h4 class="actions-label">Items</h4>
<hr/>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div *ngFor="let item of items" class="col-sm-12">
<div class="row">
<div class="col-sm-3">
<span>{{item.name}}</span>
</div>
<div class="col-sm-5">
<span>{{item.address}}</span>
</div>
<div class="col-sm-2">
<span>{{item.birthMonth}}</span>
</div>
<div class="col-sm-2">
<span>{{item.weekDay}}</span>
</div>
</div>
</div>
</div>
</div>
<div class="row padding-top-10">
<div class="col-sm-12">
<h4 class="actions-label">Filters</h4>
<hr/>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<textarea rows="3" class="col-sm-12">{{filtersText}}</textarea>
</div>
</div>
<div class="row padding-top-10">
<div class="col-sm-12">
<h4>Code</h4>
<hr/>
</div>
</div>
<div>
<tabset>
<tab heading="api">
<iframe class="demoframe" src="docs/classes/filtercomponent.html"></iframe>
</tab>
<tab heading="html">
<include-content src="src/app/filter/example/filter-lazy-example.component.html"></include-content>
</tab>
<tab heading="typescript">
<include-content src="src/app/filter/example/filter-lazy-example.component.ts"></include-content>
</tab>
</tabset>
</div>
</div>