Fancybox 4 filtering #371
-
Hi, how can I change what set of elements is selected to be shown in fancybox? I have a page with a list of elements that I filter, showing and hiding some of them. The elements can be shown in fancybox, and I want its content to show only filtered elements as well. I see that there was a selector option with earlier versions of fancybox, but is see no substitute for that in v4 docs. I tried variations of this approach with no luck (meaning I always get the full set of elements inside fancybox). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi,
|
Beta Was this translation helpful? Give feedback.
Hi,
data-fancybox="gallery"
from your links. Fancybox automatically attaches click event to any element havingdata-fancybox
attribute;style="display:none"
;Fancybox.bind()
method. Also, move it outside click handler.