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
feat: Specific input mode similar to input type (#1021)
* Specific input mode similar to type
* Simplify type and inputmode
* Link to input types as well
* revert back to accessor field in order not to break descendants
---------
Co-authored-by: Jacob Overgaard <[email protected]>
Copy file name to clipboardExpand all lines: packages/uui-input/lib/uui-input.element.ts
+20-8Lines changed: 20 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,16 @@ export type InputType =
24
24
|'number'
25
25
|'color';
26
26
27
+
exporttypeInputMode=
28
+
|'text'
29
+
|'none'
30
+
|'decimal'
31
+
|'numeric'
32
+
|'tel'
33
+
|'search'
34
+
|'email'
35
+
|'url';
36
+
27
37
/**
28
38
* Custom element wrapping the native input element.This is a formAssociated element, meaning it can participate in a native HTMLForm. A name:value pair will be submitted.
29
39
* @element uui-input
@@ -169,7 +179,8 @@ export class UUIInputElement extends UUIFormControlMixin(
169
179
170
180
/**
171
181
* This property specifies the type of input that will be rendered.
@@ -182,21 +193,22 @@ export class UUIInputElement extends UUIFormControlMixin(
182
193
}
183
194
184
195
/**
185
-
* Validates the input based on the Regex pattern
186
-
* @type {string}
196
+
* The inputmode global attribute is an enumerated attribute that hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard.
197
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode|MDN} for further information
* The inputmode global attribute is an enumerated attribute that hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard.
194
-
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode|MDN} for further information
0 commit comments