문제

I have trouble with it. I want to change mode of my swiper from 'horizlontal' to 'vertical' dynamically (for example when pressed the button). But I don't have a clue how to do it! I tried to use topSwiper.param('mode', 'vertical') and topSwiper.params.mode = 'vertical' like it was said in API, but it doesn't work. Maybe someone have an idea on how to resolve it?

도움이 되었습니까?

해결책

I make it simple way - just make topSwiper.destroy() before initializing new topSwiper with new options.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top