You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`[nzLayout]`| Form layout |`'horizontal' \| 'vertical' \| 'inline'`|`'horizontal'`|
57
-
|`[nzAutoTips]`| Set default props `[nzAutoTips]` value of `nz-form-control`, please refer to the example: **Auto tips**|`Record<string, Record<string, string>>`|`{}`| ✅ |
58
-
|`[nzDisableAutoTips]`| Set default props `[nzDisableAutoTip]` value of `nz-form-control`|`boolean`|`false`| ✅ |
59
-
|`[nzNoColon]`| Set default props `[nzNoColon]` value of `nz-form-label`|`boolean`|`false`| ✅ |
60
-
|`[nzTooltipIcon]`| Set default props `[nzTooltipIcon]` value of `nz-form-label`|`string \| { type: string; theme: ThemeType }`|`{ type: 'question-circle', theme: 'outline' }`| ✅ |
61
-
|`[nzLabelAlign]`| Set default props `[nzLabelAlign]` value of `nz-form-label`|`'left' \| 'right'`|`'right'`|
62
-
|`[nzLabelWrap]`| Set default props `[nzLabelWrap]` value of `nz-form-label`|`boolean`|`false`|
54
+
| Property | Description | Type | Default Value| Global Config |
|`[nzLayout]`| Form layout |`'horizontal' \| 'vertical' \| 'inline'`|`'horizontal'`|
57
+
|`[nzAutoTips]`| Set default props `[nzAutoTips]` value of `nz-form-control`, please refer to the example: **Auto tips**|`Record<string, Record<string, string>>`|`{}`| ✅|
58
+
|`[nzDisableAutoTips]`| Set default props `[nzDisableAutoTip]` value of `nz-form-control`|`boolean`|`false`| ✅|
59
+
|`[nzNoColon]`| Set default props `[nzNoColon]` value of `nz-form-label`|`boolean`|`false`| ✅|
60
+
|`[nzTooltipIcon]`| Set default props `[nzTooltipIcon]` value of `nz-form-label`|`string \| { type: string; theme: ThemeType }`|`{ type: 'question-circle', theme: 'outline' }`| ✅|
61
+
|`[nzLabelAlign]`| Set default props `[nzLabelAlign]` value of `nz-form-label`|`'left' \| 'right'`|`'right'`|
62
+
|`[nzLabelWrap]`| Set default props `[nzLabelWrap]` value of `nz-form-label`|`boolean`|`false`|
63
63
64
-
65
-
### nz-form-item
64
+
### nz-form-item:standalone
66
65
67
66
Used to separate the item in forms, contains label(optional) and control field.
68
67
69
68
> All api in [nz-row](/components/grid/zh) can be used in `nz-form-item`.
70
69
71
-
### nz-form-label
70
+
### nz-form-label:standalone
72
71
73
72
The label of the form item, optional.
74
73
75
74
> All api in [nz-col](/components/grid/zh) can be used in `nz-form-label`.
76
75
77
-
| Property | Description | Type | Default Value |
78
-
| --- | --- | --- | --- |
79
-
|`[nzRequired]`| add required style to current item |`boolean`|`false`|
80
-
|`[nzNoColon]`| whether to not display `:` after label text. |`boolean`|`false`|
81
-
|`[nzFor]`| The `for` property of `label`|`string`| - |
82
-
|`[nzTooltipTitle]`| Set tooltip info |`string \| TemplateRef<void>`| - |
83
-
|`[nzTooltipIcon]`| Set icon of tooltip info |`string \| NzFormTooltipIcon`| - |
84
-
|`[nzLabelAlign]`| The text align of label |`'left' \| 'right'`|`'right'`|
85
-
|`[nzLabelWrap]`| whether label can be wrap |`boolean`|`false`|
|`[nzRequired]`| add required style to current item |`boolean`|`false`|
79
+
|`[nzNoColon]`| whether to not display `:` after label text. |`boolean`|`false`|
80
+
|`[nzFor]`| The `for` property of `label`|`string`| -|
81
+
|`[nzTooltipTitle]`| Set tooltip info |`string \| TemplateRef<void>`| -|
82
+
|`[nzTooltipIcon]`| Set icon of tooltip info |`string \| NzFormTooltipIcon`| -|
83
+
|`[nzLabelAlign]`| The text align of label |`'left' \| 'right'`|`'right'`|
84
+
|`[nzLabelWrap]`| whether label can be wrap |`boolean`|`false`|
86
85
86
+
### nz-form-control:standalone
87
87
88
-
### nz-form-control
89
88
> Note:Due to the lack of partial Observable in [Angular Form](https://github.com/angular/angular/issues/10887), you have to notify `nz-form-control` to update its status with `updateValueAndValidity` when you update form status using methods like `markAsDirty`.
90
89
91
90
A form consists of one or more form fields whose type includes input, textarea, checkbox, radio, select, tag, and more.
92
91
93
92
> All api in [nz-col](/components/grid/zh) can be used in `nz-form-control`.
94
93
95
-
| Property | Description | Type | Default Value |
96
-
| --- | --- | --- | --- |
97
-
|`[nzValidateStatus]`| Will generate status based on the input `FormControl`, `NgModel` or string, the default value is the first `FormControl` or `NgModel` in `nz-form-control`|`'success' \| 'warning' \| 'error' \| 'validating' \| FormControl \| NgModel`| first `FormControl` or `NgModel` in `nz-form-control`|
98
-
|`[nzHasFeedback]`| Used with `nzValidateStatus`, this option specifies the validation status icon. Recommended to be used only with `Input`. |`boolean`|`false`|
99
-
|`[nzExtra]`| The extra prompt message |`string \| TemplateRef<void>`| - |
100
-
|`[nzSuccessTip]`| Tip display when validate success |`string \| TemplateRef<{ $implicit: FormControl \| NgModel }>`| - |
101
-
|`[nzWarningTip]`| Tip display when validate warning |`string \| TemplateRef<{ $implicit: FormControl \| NgModel }>`| - |
102
-
|`[nzErrorTip]`| Tip display when validate error |`string \| TemplateRef<{ $implicit: FormControl \| NgModel }>`| - |
103
-
|`[nzValidatingTip]`| Tip display when validating |`string \| TemplateRef<{ $implicit: FormControl \| NgModel }>`| - |
104
-
|`[nzAutoTips]`| The object of the tips, please refer to the example: **Auto tips**|`Record<string, string \| Record<string, string>>`| - | - |
105
-
|`[nzDisableAutoTips]`| Disable Auto Tips |`boolean`| - | - |
|`[nzValidateStatus]`| Will generate status based on the input `FormControl`, `NgModel` or string, the default value is the first `FormControl` or `NgModel` in `nz-form-control`|`'success' \| 'warning' \| 'error' \| 'validating' \| FormControl \| NgModel`| first `FormControl` or `NgModel` in `nz-form-control`|
97
+
|`[nzHasFeedback]`| Used with `nzValidateStatus`, this option specifies the validation status icon. Recommended to be used only with `Input`. |`boolean`|`false`|
98
+
|`[nzExtra]`| The extra prompt message |`string \| TemplateRef<void>`| -|
99
+
|`[nzSuccessTip]`| Tip display when validate success |`string \| TemplateRef<{ $implicit: FormControl \| NgModel }>`| -|
100
+
|`[nzWarningTip]`| Tip display when validate warning |`string \| TemplateRef<{ $implicit: FormControl \| NgModel }>`| -|
101
+
|`[nzErrorTip]`| Tip display when validate error |`string \| TemplateRef<{ $implicit: FormControl \| NgModel }>`| -|
102
+
|`[nzValidatingTip]`| Tip display when validating |`string \| TemplateRef<{ $implicit: FormControl \| NgModel }>`| -|
103
+
|`[nzAutoTips]`| The object of the tips, please refer to the example: **Auto tips**|`Record<string, string \| Record<string, string>>`| - | -|
104
+
|`[nzDisableAutoTips]`| Disable Auto Tips |`boolean`| - | -|
0 commit comments