diff --git a/projects/demo/src/app/components/all-inputs-demo/all-inputs-demo.component.html b/projects/demo/src/app/components/all-inputs-demo/all-inputs-demo.component.html index f42a45a..9789af3 100644 --- a/projects/demo/src/app/components/all-inputs-demo/all-inputs-demo.component.html +++ b/projects/demo/src/app/components/all-inputs-demo/all-inputs-demo.component.html @@ -69,6 +69,16 @@

Text Input

+ + + + + Validation - + + + diff --git a/projects/ngx-property-editor/src/lib/components/input/text-input/text-input.component.ts b/projects/ngx-property-editor/src/lib/components/input/text-input/text-input.component.ts index b07a799..ecf1816 100644 --- a/projects/ngx-property-editor/src/lib/components/input/text-input/text-input.component.ts +++ b/projects/ngx-property-editor/src/lib/components/input/text-input/text-input.component.ts @@ -30,6 +30,12 @@ export class TextInputComponent extends InputBaseWithValue { */ @Input() public trimValue: boolean = false; + /** + * If defined and not empty, a list with recommendations is displayed (similar to the select input) + * that can be used to fill the text input. + */ + @Input() public autocompleteList: string[] | undefined = undefined; + public constructor() { super(); }