Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Selective buttons #2638

Open
stathimexas opened this issue Feb 17, 2022 · 1 comment
Open

Selective buttons #2638

stathimexas opened this issue Feb 17, 2022 · 1 comment

Comments

@stathimexas
Copy link

Hi Janis. How can I implement a different bind for fancybox? I have this now:

Fancybox.bind('[data-fancybox="gallery"]',
{
Thumbs:{autoStart:true,},
Toolbar:{
autoEnable:false,
display:["download","counter","zoom","slideshow","fullscreen","thumbs","close",],
},
});

But on some images, I do not want to display the "download" button. Is there a way to do this?

@stathimexas
Copy link
Author

I resolved it.

I created a new bind:

Fancybox.bind('[data-fancybox="gallery-nodownload"]',
{
Thumbs:{autoStart:true,},
Toolbar:{
autoEnable:false,
display:["counter","zoom","slideshow","fullscreen","thumbs","close",],
},
});

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant