D
D
danilr2020-05-14 19:14:10
Vue.js
danilr, 2020-05-14 19:14:10

How to customize buttons in vue-tiny-slider slider?

I can't figure out how to customize the buttons (left, right) in this vue-tiny-slider.
I did it, but everything breaks

<tiny-slider
                            :mouse-drag="true"
                            :loop="true"
                            items="4"
                            gutter="10"
                            :nav="false"
                            :prev-button="<div class='button'>назад</div>" // вот тут хз как правильно
                        >
тут слайды
</tiny-slider>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MikUrrey, 2020-05-14
@MikUrrey

:prev-button="prevButton"
...
...

computed: {
    prevButton() {
        return "<div class='button'>назад</div>"
    }
}

K
Kolymb-Kapustin, 2020-07-06
@Kolymb-Kapustin

Create And pass the selector here<div class="btn"><div>
prev-button=".btn"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question