I try to use swiper’s history navigation in f7, but it doesn’t work
there is my swiper’s parameters:
swiperParams: SwiperOptions = {
spaceBetween: 1,
slidesPerView: 1,
centeredSlides: true,
initialSlide: 0,
preventClicks: false,
observer: true,
effect: 'slide',
direction: 'vertical',
noSwipingClass: 'swiper-no-swiping',
threshold: 25,
hashNavigation: {
watchState: true,
replaceState: true,
}
};
swiper element in vue template:
<f7-swiper ref="storySwiper" class="story-swiper wh-100" :params="swiperParams">
<f7-swiper-slide
class="slide"
v-for="(post, idx) in posts"
:key="idx"
:data-history="post.no"
>something</f7-swiper-slide>
</f7-swiper>
I’m not sure that config is correct or not.