This is a (multiple allowed):
import Swiper from 'swiper';
var swiper = new Swiper('.swiper-container', {
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
import Swiper from 'swiper/swiper-bundle'
var swiper = new Swiper('.swiper-container', {
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
Please see live demo: https://stackblitz.com/edit/swiper-demo-2-navigation-xozcpb?file=index.js
Navigation should work when click in both case 1 and 2.
Navigation does NOT work in case 1.
Before you open an issue, please check if a similar issue already exists or has been closed before.
Yes, #3703 exists, but it is locked so I can not add comment to it.
Please see document:
https://swiperjs.com/api/#custom-build
import { Swiper, Navigation } from 'swiper';
Swiper.use([Navigation]);
var swiper = new Swiper('.swiper-container', {
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
It works now.
Most helpful comment
Please see document:
https://swiperjs.com/api/#custom-build
It works now.