A
A
Adilet Zhuman2020-11-06 11:48:51
Slider
Adilet Zhuman, 2020-11-06 11:48:51

How to hide swiper slider navigation?

How to hide Swiper VUE.JS slider navigation (navigation control buttons)
Provided that all slides are displayed on the page
. For example, there are 4 elements inside the slider and all 4 elements are displayed in the desktop version, then there is no point in navigation.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vaultboy84, 2020-11-06
@Vaultboy84

Use the API

A
Arseny, 2020-11-07
Matytsyn @ArsenyMatytsyn

If you know exactly how many should be at the current resolution (fixed output), then pass true if the number of elements to the component properties (ideally, this should be an array on v-for).
If the actual sizes are different, then you can resort to a dynamic calculation based on dividing the size of the area (carousel) by the actual number of slides to fit. How to do this, there are many options, up to intersectionObserver.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question