react-image-lightbox
react-image-lightbox copied to clipboard
Allow Custom Content
This PR enables the use of custom content to take the place of an image source. This is incredible useful for display youtube videos, video files, PDFs, and placeholder elements.
Prop validation checks to see if mainSrc or mainCustomContent is given. One or the other must exist.
Custom content props are used as a fallback. If the src props are defined, then the custom content props are ignored.
Pull Request Test Coverage Report for Build 77
- 15 of 17 (88.24%) changed or added relevant lines in 1 file are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage increased (+2.6%) to 43.172%
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
---|---|---|---|
src/react-image-lightbox.js | 15 | 17 | 88.24% |
<!-- | Total: | 15 | 17 |
Totals | |
---|---|
Change from base Build 66: | 2.6% |
Covered Lines: | 240 |
Relevant Lines: | 561 |
💛 - Coveralls
+1 bump! This would be awesome!
@fritz-c This is great PR, incredible useful for display youtube videos, video files, PDFs, and placeholder elements. Can you take a look?
@wuweiweiwu This is great, could you merge it?
+1 we would love this @fritz-c . Please prioritise.
Bueller?
@fritz-c @wuweiweiwu anything remaining on this? please merge if all looks fine.
+1 on this one, such a simple way to do a lot :)
We'd love to see a merge too. Currently running our own forked version with these changes and it's great. Allows us to serve our users all kinds of assets on our platform in a way that they're already familiar with.
Any updates on getting this merged? We'd really appreciate it! @andrew-giangrant you are the man!
Ping - I would also love to see this merged in. Forking own version for now.
Any update on this being merged in? :)
Still, unmerged? +1 need this feature
+1 Please merge!
Please merge! Thanks!
Please merge.
This PR will be super helpful. Please Merge.