@@ -32,81 +32,21 @@ <h1>ngx-choosy</h1>
3232 </ div >
3333</ div >
3434
35+
3536< div class ="wrapper ">
3637 < div class ="container ">
3738 < div class ="row ">
3839 < div class ="col-md-3 ">
3940
4041 < 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 " >
4243 < span > {{item.name}}</ span > < i data-feather ="chevron-right "> </ i > </ li >
4344 </ ul >
4445
4546 </ div >
4647 < 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 >
9649 </ div >
9750 </ div >
9851 </ div >
9952</ 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