@@ -18,23 +18,23 @@ import { NzSwitchModule } from 'ng-zorro-antd/switch';
18
18
19
19
## API
20
20
21
- ### nz-switch
22
-
23
- | Property | Description | Type | Default | Global Config |
24
- | -------- | ----------- | ---- | ------- | ------------- |
25
- | ` [nzId] ` | button id attribute inside the component| ` string ` | - |
26
- | ` [ngModel] ` | determine whether the ` nz-switch ` is checked, double binding | ` boolean ` | ` false ` |
27
- | ` [nzCheckedChildren] ` | content to be shown when the state is checked | ` string \| TemplateRef<void> ` | - |
28
- | ` [nzUnCheckedChildren] ` | content to be shown when the state is unchecked | ` string \| TemplateRef<void> ` | - |
29
- | ` [nzDisabled] ` | Disable switch | ` boolean ` | ` false ` |
30
- | ` [nzSize] ` | the size of the ` nz-switch ` , options: ` default ` ` small ` | ` 'small' \| 'default' ` | ` 'default' ` | ✅ |
31
- | ` [nzLoading] ` | loading state of switch | ` boolean ` | ` false ` |
32
- | ` [nzControl] ` | determine whether fully control state by user | ` boolean ` | ` false ` |
33
- | ` (ngModelChange) ` | a callback function, can be executed when the checked state is changing | ` EventEmitter<boolean> ` | - |
21
+ ### nz-switch: standalone
22
+
23
+ | Property | Description | Type | Default | Global Config |
24
+ | ----------------------- | ----------------------------------------------------------------------- | ----------------------------- | ---- ------- | ------------- |
25
+ | ` [nzId] ` | button id attribute inside the component | ` string ` | - |
26
+ | ` [ngModel] ` | determine whether the ` nz-switch ` is checked, double binding | ` boolean ` | ` false ` |
27
+ | ` [nzCheckedChildren] ` | content to be shown when the state is checked | ` string \| TemplateRef<void> ` | - |
28
+ | ` [nzUnCheckedChildren] ` | content to be shown when the state is unchecked | ` string \| TemplateRef<void> ` | - |
29
+ | ` [nzDisabled] ` | Disable switch | ` boolean ` | ` false ` |
30
+ | ` [nzSize] ` | the size of the ` nz-switch ` , options: ` default ` ` small ` | ` 'small' \| 'default' ` | ` 'default' ` | ✅ |
31
+ | ` [nzLoading] ` | loading state of switch | ` boolean ` | ` false ` |
32
+ | ` [nzControl] ` | determine whether fully control state by user | ` boolean ` | ` false ` |
33
+ | ` (ngModelChange) ` | a callback function, can be executed when the checked state is changing | ` EventEmitter<boolean> ` | - |
34
34
35
35
#### Methods
36
36
37
- | Name | Description |
38
- | ---- | ----------- |
39
- | focus() | get focus |
40
- | blur() | remove focus |
37
+ | Name | Description |
38
+ | ------- | - ----------- |
39
+ | focus() | get focus |
40
+ | blur() | remove focus |
0 commit comments