Open pwnz22 opened 4 years ago
Found slots that are not in the docs. Also default classes not changing fiddle
Hey @pwnz22, Indeed, the prev & next buttons can be customized via slots, and the close button as well:
<vue-gallery @close="index = null" :id="id" :images="images" :index="index" :options="getOptions()">
<slot ref="gallery"></slot>
<span slot="prev"><</span>
<span slot="next">></span>
</vue-gallery>
I added a paragraph covering slots in this fork: https://github.com/bab0uk/vue-gallery/commit/34df3215385e2533a246bdf605977373b23e4819
Hello, @RobinCK
Can i somehow customize the
prev & next
buttons markup? I need to add something like<a class="prev"> <span></span></a>
and also change close button markup.