Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thumbs configure question #137

Closed
gj52 opened this issue Sep 28, 2021 · 4 comments
Closed

thumbs configure question #137

gj52 opened this issue Sep 28, 2021 · 4 comments

Comments

@gj52
Copy link

gj52 commented Sep 28, 2021

sorry, nothing found in the docs

I want have thumbs, but not with autostart - do not show thumbs, but want to switch it on.

tryed to set thumbs: "hide" or autostart: 'false', nothing worked for me.

looked in JS, but without a result for me.

@fancyapps
Copy link
Owner

Hi,

Use it like this:

Fancybox.bind("[data-fancybox]", {
  Thumbs: {
    autoStart : false
  },
});

@gj52
Copy link
Author

gj52 commented Sep 29, 2021

autoStart : false,

is in my configuration, but don't work :-(
see my sample in issue #136

@fancyapps
Copy link
Owner

fancyapps commented Sep 29, 2021

Replace

autostart

with

autoStart

@gj52
Copy link
Author

gj52 commented Oct 3, 2021

found a second effect :-(

Your sample

    <script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.umd.js"></script>
    <script>
      //  JavaScript will go here
    </script>

does NOT work correctly with autoStart ..

If I move <script src= ... /> in the header all works fine.

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

No branches or pull requests

2 participants