silencesys / silentbox

A lightbox inspired Vue.js component.
https://silentbox.rocek.dev
MIT License
296 stars 50 forks source link

Just a little idea for your readme.md and your website - Method already accessible to open the lightbox #45

Closed paulalbertdev closed 3 years ago

paulalbertdev commented 3 years ago

Hi ! I wanted to execute a method to open the lightbox so I dug into your lib a few seconds and found that the openOverlay method can totally do it with : <silent-box ref="gal" :gallery="gallery"></silent-box> and this.$refs.gal.openOverlay(this.gallery[0], 0) So I thought that you should maybe add this to the doc for other users of your library ! Cheers ;)

silencesys commented 3 years ago

Thank you! Readme was updated. I've added another method that someone might find useful. :)