@@ -3,60 +3,45 @@ <h3 class="style-header">Toggle</h3>
3
3
< ngx-tabs >
4
4
< ngx-tab label ="Examples ">
5
5
< ngx-section class ="shadow " [sectionTitle] ="'Demo' ">
6
- < ngx-toggle name ="toggle1 " [(ngModel)] ="toggleChk " [label] ="'High Priority' ">
7
- </ ngx-toggle >
6
+ < ngx-toggle name ="toggle1 " [(ngModel)] ="toggleChk " [label] ="'High Priority' "> </ ngx-toggle >
8
7
< app-prism >
9
- <![CDATA[< ngx-toggle
10
- name ="toggle1 "
11
- [(ngModel)] ="toggleChk "
12
- [label] ="'High Priority' ">
13
- </ ngx-toggle > ]]>
8
+ <![CDATA[< ngx-toggle name ="toggle1 " [(ngModel)] ="toggleChk " [label] ="'High Priority' "> </ ngx-toggle > ]]>
14
9
</ app-prism >
15
10
< br />
16
11
< br />
17
-
18
- < ngx-toggle name ="toggle2 " [disabled] ="true " [label] ="'Disabled' ">
19
- </ ngx-toggle >
12
+
13
+ < ngx-toggle name ="toggle2 " [disabled] ="true " [label] ="'Disabled' "> </ ngx-toggle >
20
14
< app-prism >
21
- <![CDATA[< ngx-toggle
22
- name ="toggle2 "
23
- [disabled] ="true "
24
- [label] ="'Disabled' ">
25
- </ ngx-toggle > ]]>
15
+ <![CDATA[< ngx-toggle name ="toggle2 " [disabled] ="true " [label] ="'Disabled' "> </ ngx-toggle > ]]>
26
16
</ app-prism >
27
17
< br />
28
18
< br />
29
-
19
+
30
20
< ngx-toggle name ="toggle3 " [(ngModel)] ="toggleChk " (ngModelChange) ="onToggleChange($event) ">
31
21
< strong class ="color-red " [hidden] ="!toggleChk "> Alert Everyone!</ strong >
32
22
< strong class ="color-green " [hidden] ="toggleChk "> All good!</ strong >
33
23
</ ngx-toggle >
34
24
< app-prism >
35
- <![CDATA[< ngx-toggle name ="toggle3 " [(ngModel)] ="toggleChk " (ngModelChange) ="onToggleChange($event) ">
36
- < strong class ="color-red " [hidden] ="!toggleChk "> Alert Everyone!</ strong >
37
- < strong class ="color-green " [hidden] ="toggleChk "> All good!</ strong >
38
- </ ngx-toggle > ]]>
25
+ <![CDATA[< ngx-toggle name ="toggle3 " [(ngModel)] ="toggleChk " (ngModelChange) ="onToggleChange($event) "> < strong
26
+ class ="color-red " [hidden] ="!toggleChk "> Alert Everyone!</ strong > < strong class ="color-green "
27
+ [hidden] ="toggleChk "> All good!</ strong > </ ngx-toggle > ]]>
39
28
</ app-prism >
40
29
< br />
41
30
< br />
42
-
31
+
43
32
< ngx-toggle name ="toggle4 " [(ngModel)] ="toggleChk " [label] ="'High Priority With No Icons' " [showIcons] ="false ">
44
33
</ ngx-toggle >
45
34
< app-prism >
46
- <![CDATA[< ngx-toggle
47
- name ="toggle4 "
48
- [(ngModel)] ="toggleChk "
49
- [label] ="'High Priority With No Icons' "
50
- [showIcons] ="false ">
51
- </ ngx-toggle > ]]>
35
+ <![CDATA[< ngx-toggle name ="toggle4 " [(ngModel)] ="toggleChk " [label] ="'High Priority With No Icons' "
36
+ [showIcons] ="false "> </ ngx-toggle > ]]>
52
37
</ app-prism >
53
38
</ ngx-section >
54
39
</ ngx-tab >
55
40
< ngx-tab label ="API ">
56
41
< h3 > Table of Contents</ h3 >
57
42
< a class ="documentation-content " (click) ="scrollTo('inputs') "> Component Inputs</ a >
58
43
< a class ="documentation-content " (click) ="scrollTo('outputs') "> Component Outputs</ a >
59
- < hr >
44
+ < hr / >
60
45
61
46
< h3 class ="style-header " id ="inputs "> Component Inputs</ h3 >
62
47
< table class ="table documentation-table ">
@@ -118,8 +103,24 @@ <h3 class="style-header" id="inputs">Component Inputs</h3>
118
103
</ tr >
119
104
</ tbody >
120
105
</ table >
121
- < hr >
106
+ < hr / >
122
107
< h3 class ="style-header " id ="outputs "> Component Outputs</ h3 >
123
- < h4 > No component outputs to display.</ h4 >
108
+ < table class ="table documentation-table ">
109
+ < thead >
110
+ < tr >
111
+ < th > Name</ th >
112
+ < th > Description</ th >
113
+ </ tr >
114
+ </ thead >
115
+ < tbody >
116
+ < tr >
117
+ < th >
118
+ < code class ="component-type "> @Output()</ code >
119
+ < code > change: EventEmitter<Event></ code >
120
+ </ th >
121
+ < td > Event emitted when the value is changed.</ td >
122
+ </ tr >
123
+ </ tbody >
124
+ </ table >
124
125
</ ngx-tab >
125
- </ ngx-tabs >
126
+ </ ngx-tabs >
0 commit comments