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
Don't render previews if previewsContainer == false #487
Conversation
Hello Kevin, I need a little help on dropzone preview area, I will like to make my preview image fill the whole dropzone area.. Please how can I do this. Thanks |
@Oluwafemikorede Sorry, I don't know. You'll probably need to change the previewTemplate and the css. |
@kevinkrouse Thanks, I have actually solved the problem, I tweaked the css and it worked |
Would love if this got merged, it is exactly what I need. I was just in the process of changing the source myself, but it would definitely be better if it was supported officially. |
+1 would love to see this feature being offered out-of-the-box instead of having to resort to CSS class to hide the preview element. |
👍 |
Don't render previews if previewsContainer == false
Thanks. Great PR. Will release in a few days. |
@enyo This feature doesn't reflect in docs. |
@enyo It would be excellent if it was mentioned in the docs at http://www.dropzonejs.com/#config-previewsContainer that "previewContainers" can be set to false Currently this is not explained in the docs and I think there may be more users such as myself who will have trouble tracking down this pull request to realize that this feature already exists but isn't documented. Thanks for adding this feature though! |
Fix for #175
If the previewsContainer option is false, previews won't be rendered. Alternatively, we could introduce a new 'renderPreviews' boolean option instead of piggy-backing on previewsContainer.