From 733fa08fae6c1757468834dd7be59041e97de225 Mon Sep 17 00:00:00 2001 From: yerramshilpa <44271677+yerramshilpa@users.noreply.github.com> Date: Wed, 27 Dec 2023 12:21:45 -0500 Subject: [PATCH] file input demo --- .../demos/basic-file-input/basic-file-input.component.ts | 3 +++ .../formly-file-input-basic.component.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libs/documentation/src/lib/components/formly-file-input/demos/basic-file-input/basic-file-input.component.ts b/libs/documentation/src/lib/components/formly-file-input/demos/basic-file-input/basic-file-input.component.ts index 469738759f..2054c38247 100644 --- a/libs/documentation/src/lib/components/formly-file-input/demos/basic-file-input/basic-file-input.component.ts +++ b/libs/documentation/src/lib/components/formly-file-input/demos/basic-file-input/basic-file-input.component.ts @@ -16,6 +16,7 @@ export class BasicFileInputComponent { label: 'Basic File Input', description: 'Accepts single file', hideOptional: true, + displayFileInfo: true, }, validation: { messages: { @@ -34,6 +35,7 @@ export class BasicFileInputComponent { description: 'Accepts Multiple Files', multiple: true, hideOptional: true, + displayFileInfo: true, }, }, { @@ -44,6 +46,7 @@ export class BasicFileInputComponent { description: 'Only PDF, CSV, or any image format files are allowed', multiple: true, hideOptional: true, + displayFileInfo: true, acceptFileType: '.pdf,.csv,image/*', }, }, diff --git a/libs/documentation/src/lib/storybook/formly/formly-file-input/formly-file-input-basic/formly-file-input-basic.component.ts b/libs/documentation/src/lib/storybook/formly/formly-file-input/formly-file-input-basic/formly-file-input-basic.component.ts index 50dadbbbdc..f4164144c0 100644 --- a/libs/documentation/src/lib/storybook/formly/formly-file-input/formly-file-input-basic/formly-file-input-basic.component.ts +++ b/libs/documentation/src/lib/storybook/formly/formly-file-input/formly-file-input-basic/formly-file-input-basic.component.ts @@ -16,6 +16,7 @@ export class BasicFileInputComponent { label: 'Basic File Input', description: 'Accepts single file', hideOptional: true, + displayFileInfo: true, }, validation: { messages: { @@ -34,6 +35,7 @@ export class BasicFileInputComponent { description: 'Accepts Multiple Files', multiple: true, hideOptional: true, + displayFileInfo: true, }, }, { @@ -44,6 +46,7 @@ export class BasicFileInputComponent { description: 'Only PDF, CSV, or any image format files are allowed', multiple: true, hideOptional: true, + displayFileInfo: true, acceptFileType: '.pdf,.csv,image/*', }, },