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
Copy file name to clipboardExpand all lines: projects/dxc-ngx-cdk-site/src/app/components/examples/textarea/textarea-properties/textarea-properties.component.html
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,8 @@
22
22
<td>defaultValue: string</td>
23
23
<td></td>
24
24
<td>
25
-
Default value given to the textarea when is uncontrolled and also maintains the uncontrolled behaviour.
25
+
Default value given to the textarea when is uncontrolled and also
26
+
maintains the uncontrolled behaviour.
26
27
</td>
27
28
</tr>
28
29
<tr>
@@ -59,8 +60,9 @@
59
60
</td>
60
61
<td>
61
62
If true, the input will be optional, showing <code>(Optional)</code>
62
-
next to the label. Otherwise, the field will be considered required and an error
63
-
will be passed as a parameter to the OnBlur and onChange functions when it has not been filled.
63
+
next to the label. Otherwise, the field will be considered required and an
64
+
error will be passed as a parameter to the OnBlur and onChange functions
65
+
when it has not been filled.
64
66
</td>
65
67
</tr>
66
68
<tr>
@@ -94,9 +96,12 @@
94
96
<td>error: string</td>
95
97
<td></td>
96
98
<td>
97
-
If it is defined, the component will change its appearance, showing the
98
-
error below the textarea component. If it is not defined, the error
99
-
messages will be created and managed internally.
99
+
If it is a defined value and also a truthy string, the component will
100
+
change its appearance, showing the error below the textarea. If the
101
+
defined value is an empty string, it will reserve a space below the
102
+
component for a future error, but it would not change its look. In case of
103
+
being undefined or null, both the appearance and the space for the error
Copy file name to clipboardExpand all lines: projects/dxc-ngx-cdk-site/src/app/pages/theme-builder/previews/textarea-preview/textarea-preview.component.html
Copy file name to clipboardExpand all lines: projects/dxc-ngx-cdk/src/lib/dxc-textarea/dxc-textarea.component.ts
+25-21Lines changed: 25 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ export class DxcTextareaComponent implements OnInit {
68
68
}
69
69
private_disabled=false;
70
70
/**
71
-
* If true, the textarea will be optional, showing (Optional) next to the label.
71
+
* If true, the textarea will be optional, showing (Optional) next to the label.
72
72
* Otherwise, the field will be considered required and an error will be passed as a parameter to the OnBlur and onChange functions when it has not been filled.
73
73
*/
74
74
@Input()
@@ -99,8 +99,12 @@ export class DxcTextareaComponent implements OnInit {
99
99
@Input()
100
100
verticalGrow: "auto"|"manual"|"none"="auto";
101
101
/**
102
-
* If it is defined, the component will change its appearance, showing the error below the textarea component.
103
-
* If it is not defined, the error messages will be created and managed internally.
102
+
* If it is a defined value and also a truthy string, the component will
103
+
* change its appearance, showing the error below the textarea. If the defined
104
+
* value is an empty string, it will reserve a space below the component for a
105
+
* future error, but it would not change its look. In case of being undefined
106
+
* or null, both the appearance and the space for the error message would not
107
+
* be modified.
104
108
*/
105
109
@Input()
106
110
error=undefined;
@@ -110,34 +114,34 @@ export class DxcTextareaComponent implements OnInit {
110
114
@Input()
111
115
placeholder="";
112
116
/**
113
-
* Regular expression that defines the valid format allowed by the textarea.
114
-
* This will be checked when the textarea loses the focus.
115
-
* If the value entered does not match the pattern, the onBlur function will be called with the value
116
-
* entered and the error informing that the value does not match the pattern as parameters. If the pattern is accomplished,
117
+
* Regular expression that defines the valid format allowed by the textarea.
118
+
* This will be checked when the textarea loses the focus.
119
+
* If the value entered does not match the pattern, the onBlur function will be called with the value
120
+
* entered and the error informing that the value does not match the pattern as parameters. If the pattern is accomplished,
117
121
* the error parameter will be null.
118
122
*/
119
123
@Input()
120
124
pattern="";
121
125
/**
122
-
* Specifies the minimun length allowed by the textarea.
123
-
* This will be checked both when the input element loses the focus and while typing within it.
124
-
* If the string entered does not comply the minimum length, the onBlur and onChange functions will be called
125
-
* with the current value and an internal error informing that the value length does not comply the specified range.
126
+
* Specifies the minimun length allowed by the textarea.
127
+
* This will be checked both when the input element loses the focus and while typing within it.
128
+
* If the string entered does not comply the minimum length, the onBlur and onChange functions will be called
129
+
* with the current value and an internal error informing that the value length does not comply the specified range.
126
130
* If a valid length is reached, the error parameter of both events will be null.
127
131
*/
128
132
@Input()
129
133
minLength: number;
130
134
/**
131
-
* Specifies the maximum length allowed by the textarea.
132
-
* This will be checked both when the input element loses the focus and while typing within it.
133
-
* If the string entered does not comply the maximum length, the onBlur and onChange functions will be called
134
-
* with the current value and an internal error informing that the value length does not comply the specified range.
135
+
* Specifies the maximum length allowed by the textarea.
136
+
* This will be checked both when the input element loses the focus and while typing within it.
137
+
* If the string entered does not comply the maximum length, the onBlur and onChange functions will be called
138
+
* with the current value and an internal error informing that the value length does not comply the specified range.
135
139
* If a valid length is reached, the error parameter of both events will be null.
136
140
*/
137
141
@Input()
138
142
maxLength: number;
139
143
/**
140
-
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
144
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
141
145
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
142
146
*/
143
147
@Input()
@@ -161,7 +165,7 @@ export class DxcTextareaComponent implements OnInit {
0 commit comments