Closed Chamberlainfrancis closed 4 years ago
It seems your config is right, I am need a full demo (an online demo as CodePen will be better) if you need more suggestion.
I'm using it with Vue, I didn't test it with Jquery but in my case I create the viewer instance from image-gallery and not from li class .gallery to show the gallery and create a button to call show(). It should work if you click the image but in my case I just add a gallery.show() method.
In your case, you may need to call the viewer.show()
method manually once click on the image.
I have spent some hours trying to get viewerjs work on my app but it has not been able to respond even though I followed the recommended way from the documentation.
on the documentation it is said that I can define where to get the original image URL for viewing by specifying the
url: "source"
in the options array.but here in my code the viewer doesn't trigger or respond even though the image src is specified but if I remove attribute
data-src
from<img>
the viewer triggers, I can easily just remove thedata-src
and have it work but it needs to be in my code anyways because it has some other functionality.take a look at code below is there something I am not doing right ?
Thanks for the help.