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: packages/uui-input/lib/uui-input.element.ts
+33-2Lines changed: 33 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,11 @@ export type InputMode =
34
34
|'email'
35
35
|'url';
36
36
37
+
exporttypeInputDataListOption={
38
+
name?: string;
39
+
value: string;
40
+
};
41
+
37
42
/**
38
43
* 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.
39
44
* @element uui-input
@@ -164,6 +169,16 @@ export class UUIInputElement extends UUIFormControlMixin(
164
169
@property()
165
170
placeholder='';
166
171
172
+
/**
173
+
* An array of options to be rendered by the input's datalist. The option interface has 2 properties:
174
+
* `interface Option {
175
+
name: string;
176
+
value: string;
177
+
}`
178
+
*/
179
+
@property({type: Array,attribute: false})
180
+
options: Array<InputDataListOption>=[];
181
+
167
182
/**
168
183
* Defines the input autocomplete.
169
184
* @type {string}
@@ -324,11 +339,26 @@ export class UUIInputElement extends UUIFormControlMixin(
0 commit comments