From f1576c7798a8cc14d5c93b784df1a67bb764d08c Mon Sep 17 00:00:00 2001 From: Marco Rodolfi Date: Thu, 22 Jun 2023 11:58:00 +0200 Subject: Chore: Better logical order for file picker v2 function call --- frontend/src/components/modals/filepicker/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'frontend/src/components/modals') diff --git a/frontend/src/components/modals/filepicker/index.tsx b/frontend/src/components/modals/filepicker/index.tsx index 102f813b..7f77b4ef 100644 --- a/frontend/src/components/modals/filepicker/index.tsx +++ b/frontend/src/components/modals/filepicker/index.tsx @@ -127,13 +127,20 @@ const iconStyles = { const FilePicker: FunctionComponent = ({ startPath, + //What are we allowing to show in the file picker includeFiles = true, - filter = undefined, includeFolders = true, + //Parameter for specifying a specific filename match + filter = undefined, + //Filter for specific extensions as an array validFileExtensions = undefined, + //Allow to override the fixed extension above allowAllFiles = true, + //If we need to show hidden files and folders (both Win and Linux should work) defaultHidden = false, // false by default makes sense for most users + //How much files per page to show, default 1000 max = 1000, + //Which picking option to select by default fileSelType = FileSelectionType.NONE, onSubmit, closeModal, -- cgit v1.2.3