-
Notifications
You must be signed in to change notification settings - Fork 352
Closed
Labels
Needs: Author FeedbackIssue needs response from issue authorIssue needs response from issue authorfeature-requestno-recent-activity
Description
Proposal: Add filterFiles property to mgt-file-list so custom filter function could be provided by consumer
Description
As a consumer of this component i should be able to decide if specific document should be shown or not (currently only file extensions are supported). Using a filter function could solve most scenarios.
Rationale
- Use case: include all extensions except ".json". Not possible with current component.
- Use case: exclude specific folder or file by name pattern.
- Use case: exclude by other DriveItem properties (filesize) or combination of properties (ex.: .back files if size is > 1gb)
- It could help to solve (or provide workaround)
mgt-file-list
should support both filtering by file extensions but also return folders #1749 - It will be a similar approach as filterTasks property
Preferred Solution
Implement filterFiles property following the filterTasks implementation from to-do component.
Additional Context
Probably I will try to implement it myself any time soon.
Metadata
Metadata
Assignees
Labels
Needs: Author FeedbackIssue needs response from issue authorIssue needs response from issue authorfeature-requestno-recent-activity
Type
Projects
Status
Done ✔️