I can't get the custom bullets to slide when clicked from swiper.js.
Here is my stackblitz
I've added the config property
'clickable: true'
Here is my swiper code code
private pagination: SwiperPaginationInterface = {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
renderBullet: function(index, className) {
return '<span class="' + className + '">' + (index === 0 ? 'info ' : 'students') + '</span>';
},
};
config: SwiperConfigInterface = {
observer: true,
observeParents: true,
observeSlideChildren: true,
direction: 'horizontal',
threshold: 50,
spaceBetween: 0,
slidesPerView: 1,
centeredSlides: true,
slideToClickedSlide: true,
pagination: this.pagination,
navigation: true,
// width: 200,
// setWrapperSize: true,
};