yaquawa / jquery.photoswipe

The jQuery plugin for PhotoSwipe
91 stars 35 forks source link

Access porperties. #19

Open j08 opened 6 years ago

j08 commented 6 years ago

How would I go about accessing the properties of PhotoSwipe after I have initialised it with your plugin? For example how would I get "pswp.getCurrentIndex();"

I tried $.fn.photoSwipe.PhotoSwipe.getCurrentIndex(); and various other things, but got nothing back.

Many thanks, Jake.

yaquawa commented 6 years ago

@j08 Take a look at here may solve your problem.