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

this.$refs.lightbox.showImage is not a function #212

Open
snowtt opened this issue Jul 11, 2021 · 1 comment
Open

this.$refs.lightbox.showImage is not a function #212

snowtt opened this issue Jul 11, 2021 · 1 comment

Comments

@snowtt
Copy link

snowtt commented Jul 11, 2021

I am using the example that contains the src / components / App.vue folder.

and I get an error called "this. $ refs.lightbox.showImage is not a function".
When activating: show-light-box = "true", it works fine for me, although I am looking to click on the image so that I am showing me the preview.

@MiguelRita
Copy link

MiguelRita commented Sep 21, 2021

<LightBox ref="referenceName"></LightBox>

 openGallery(index) {
      this.$refs.referenceName.showImage(index)
    }

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