@@ -32,81 +32,21 @@ <h1>ngx-choosy</h1>
32
32
</ div >
33
33
</ div >
34
34
35
+
35
36
< div class ="wrapper ">
36
37
< div class ="container ">
37
38
< div class ="row ">
38
39
< div class ="col-md-3 ">
39
40
40
41
< ul class ="list-group ">
41
- < li class ="list-group-item " *ngFor ="let item of menu " [ngClass] ="{'current':item.name=='Demo'} ">
42
+ < li class ="list-group-item " *ngFor ="let item of menu " [ngClass] ="{'current':item.name=='Demo'} " [routerLink] =" item.url " >
42
43
< span > {{item.name}}</ span > < i data-feather ="chevron-right "> </ i > </ li >
43
44
</ ul >
44
45
45
46
</ div >
46
47
< div class ="col-md-9 ">
47
- < div id ="content ">
48
- < h1 > Basic demo</ h1 >
49
- < p >
50
- < strong > ngx-choosy</ strong > turns any input element in to a dropdown select box. Thus, it does not apply any
51
- styles to your input. It also gives a freedom to style your input fields to your needs.
52
- </ p >
53
- < br />
54
- < div class ="example ">
55
- < h2 > < i data-feather ="play "> </ i > Single select dropdown</ h2 >
56
- < div class ="row ">
57
- < div class ="col-md-6 ">
58
- < div class ="form-group ">
59
- < label class ="sr-only " for ="exampleInputAmount "> Amount (in dollars)</ label >
60
- < input type ="text " placeholder ="choose " class ="form-control " choosySingleSelect [options] ="universities " />
61
- </ div >
62
- </ div >
63
- </ div >
64
- </ div >
65
- < div class ="example ">
66
- < h2 > < i data-feather ="play "> </ i > With animation and without search/footer</ h2 >
67
- < div class ="row ">
68
- < div class ="col-md-6 ">
69
- < div class ="form-group ">
70
- < label class ="sr-only " for ="exampleInputAmount "> Amount (in dollars)</ label >
71
- < input type ="text " placeholder ="choose " class ="form-control " choosySingleSelect [options] ="universities " [config] ="{search:{enable:false},footer:{enable:false},dropdown:{animation:true}} "
72
- />
73
- </ div >
74
- </ div >
75
- </ div >
76
- </ div >
77
-
78
- < div class ="example ">
79
- < h2 > < i data-feather ="play "> </ i > Custom template</ h2 >
80
- < div class ="row ">
81
- < div class ="col-md-6 ">
82
- < div class ="form-group ">
83
- < label class ="sr-only " for ="exampleInputAmount "> Colors</ label >
84
- < div class ="input-group ">
85
- < input type ="text " placeholder ="choose " class ="form-control " choosySingleSelect [options] ="users " [config] ="{displayValue:'email',search:{keys:['value.email','value.name.first','value.name.last']}} "
86
- [template] ="add " (isOpen) ="foobar=$event " (choosy) ="addressEvent($event) " />
87
- < div class ="input-group-addon " (click) ="openAddressDd($event) ">
88
- < i class ="fa " [ngClass] ="{'fa-angle-up':foobar,'fa-angle-down':!foobar} "> </ i >
89
- </ div >
90
- </ div >
91
- </ div >
92
- </ div >
93
- </ div >
94
- </ div >
95
- </ div >
48
+ < router-outlet > </ router-outlet >
96
49
</ div >
97
50
</ div >
98
51
</ div >
99
52
</ div >
100
-
101
-
102
- < ng-template let-item #add >
103
- < div class ="card ">
104
- < div class ="pic ">
105
- < img src ="{{item.picture.thumbnail}} ">
106
- </ div >
107
- < div class ="detail ">
108
- < div > < strong > {{item.name.first}} {{item.name.last}}</ strong > </ div >
109
- < div > {{item.email}}</ div >
110
- </ div >
111
- </ div >
112
- </ ng-template >
0 commit comments