react-image-lightbox icon indicating copy to clipboard operation
react-image-lightbox copied to clipboard

Allow Custom Content

Open agiangrant opened this issue 5 years ago • 17 comments

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.

agiangrant avatar Aug 15 '18 12:08 agiangrant

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 Coverage Status
Change from base Build 66: 2.6%
Covered Lines: 240
Relevant Lines: 561

💛 - Coveralls

coveralls avatar Aug 15 '18 12:08 coveralls

+1 bump! This would be awesome!

crobinson42 avatar Dec 30 '18 23:12 crobinson42

@fritz-c This is great PR, incredible useful for display youtube videos, video files, PDFs, and placeholder elements. Can you take a look?

tb avatar Dec 05 '19 08:12 tb

@wuweiweiwu This is great, could you merge it?

caseyjkey avatar Jan 17 '20 17:01 caseyjkey

+1 we would love this @fritz-c . Please prioritise.

iamsaurabhgupt avatar Aug 02 '20 14:08 iamsaurabhgupt

Bueller?

jackson-sandland avatar Sep 26 '20 18:09 jackson-sandland

@fritz-c @wuweiweiwu anything remaining on this? please merge if all looks fine.

iamsaurabhgupt avatar Sep 26 '20 21:09 iamsaurabhgupt

+1 on this one, such a simple way to do a lot :)

jugglingjsons avatar Nov 29 '20 17:11 jugglingjsons

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.

oxorp avatar Dec 02 '20 03:12 oxorp

Any updates on getting this merged? We'd really appreciate it! @andrew-giangrant you are the man!

sntk avatar Feb 04 '21 23:02 sntk

Ping - I would also love to see this merged in. Forking own version for now.

jugglingjsons avatar Apr 17 '21 06:04 jugglingjsons

Any update on this being merged in? :)

leilahbirchall avatar Jul 28 '21 11:07 leilahbirchall

Still, unmerged? +1 need this feature

symbianm avatar Dec 18 '21 16:12 symbianm

+1 Please merge!

chris-oms avatar Apr 12 '22 10:04 chris-oms

Please merge! Thanks!

vincent-scw avatar May 20 '22 07:05 vincent-scw

Please merge.

oosharma avatar May 24 '22 15:05 oosharma

This PR will be super helpful. Please Merge.

anjanvb avatar Jun 10 '22 02:06 anjanvb