From 7ccdabdf81c8a0a9d01d4062067a29b2ea834b48 Mon Sep 17 00:00:00 2001 From: -l Date: Mon, 18 Nov 2024 10:11:31 +0100 Subject: [PATCH] docs(Field.Upload): adds asyncFileHandler property --- .../src/extensions/forms/Field/Upload/UploadDocs.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/dnb-eufemia/src/extensions/forms/Field/Upload/UploadDocs.ts b/packages/dnb-eufemia/src/extensions/forms/Field/Upload/UploadDocs.ts index 0fdfe4b5949..84fb5c9dda2 100644 --- a/packages/dnb-eufemia/src/extensions/forms/Field/Upload/UploadDocs.ts +++ b/packages/dnb-eufemia/src/extensions/forms/Field/Upload/UploadDocs.ts @@ -5,6 +5,11 @@ import { import { PropertiesTableProps } from '../../../../shared/types' export const UploadFieldProperties: PropertiesTableProps = { + asyncFileHandler: { + doc: 'Asynchronous handler function that takes newly added files (`newFiles: UploadValue`) as a parameter and returns a promise containing the processed files (`Promise`).', + type: 'function', + status: 'optional', + }, ...UploadProperties, title: undefined, text: undefined,