Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Dynamic chip props based on FileObject instance #290

Open
alichry opened this issue Apr 1, 2021 · 0 comments · May be fixed by #291
Open

Feature: Dynamic chip props based on FileObject instance #290

alichry opened this issue Apr 1, 2021 · 0 comments · May be fixed by #291

Comments

@alichry
Copy link

alichry commented Apr 1, 2021

FR: Dynamic chip props based on FileObject instance.

Describe the problem related to this feature request

I want to validate specific files based on some custom logic. This can be done by either having full control over rendering each uploaded file or passing custom classes or props to the invalid chip (file). I do not want to display an error message upon receiving an invalid file. Instead, I want to it to be added with a red border.

Describe the solution you'd like

This could be delivered by passing a func that accepts a FileObject and returns chip props. previewChipProps can be modified to accept a func

Describe alternatives you've considered

N/A


I would like to start working on this and submit a PR, can we proceed?

@alichry alichry linked a pull request Apr 2, 2021 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant