@@ -18,23 +18,23 @@ import { NzSwitchModule } from 'ng-zorro-antd/switch';
1818
1919## API
2020
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> ` | - |
3434
3535#### Methods
3636
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