ngx-file-drop
ngx-file-drop copied to clipboard
Converted FileDrop into a FileDropDirective.
Wanted the file drop functionality but without any of the styling. For me, it was a lot easier to work with file drop as a directive, that was I can add it to any div and have a little more flexibility with the styling. It's a small ease of use improvement, but I can't imagine I'm the only one who would prefer to use it as a directive.
There should be no breaking changes because the FileDrop component keeps the same interface. I'm not familiar with all of the features, so still needs more review. This is still a work in progress, I'm submitting as a draft to get some feedback on if this is a direction you'd like to go. I do think it makes the file drop a little more general purpose.
Changes:
- Most of the file drop functionality was moved into the new FileDropDirective.
- File Selection functionality was moved to a FileSelection component that works with the directive.
- FileDrop component is now a basic implementation of the FileDropDirective and FileSelection component.
The idea looks interesting, however I will need more time to review everything. Please feel free to continue the work on it, also we need to update the readme, explaining, how to use it properly. It will be great if there are no breaking changes, but even there are such, we could publish version 7.0.0 and take from that point on.
Great to hear, I will happily put more work into turning this into a 7.0.0 release and update readmes, etc. Agree that it would be best to roll this into the next version. I'm travelling at the moment so will be out for the next 2 weeks, but will reach out again once I'm available.