Proposal: mgt-file-list should support both filtering by file extensions but also return folders
Description
Right now, when filtering by file extension, we automatically lose the ability to drill through the file hierarchy as we only return the current folders files, but ignore folders.
Rationale
This would allow for a more fined-grained experience and would help with #1741
Preferred Solution
Adding a new property on the mgt-file-list component to allow something like :
<mgt-file-list file-extensions="pdf,docx" preserve-folders></mgt-file-list>
| Attribute |
Property |
Description |
| preserve-folders |
preserveFolders |
Only available when file-extensions is used. Will return folders when specified. Default false |
Proposal:
mgt-file-listshould support both filtering by file extensions but also return foldersDescription
Right now, when filtering by file extension, we automatically lose the ability to drill through the file hierarchy as we only return the current folders files, but ignore folders.
Rationale
This would allow for a more fined-grained experience and would help with #1741
Preferred Solution
Adding a new property on the
mgt-file-listcomponent to allow something like :file-extensionsis used. Will return folders when specified. Defaultfalse