How to use custom navigation on webcomponent swiper? #7536
Replies: 2 comments
-
https://swiperjs.com/element#parameters-as-attributes
Based off the docs, it should probably work with something like the above... Haven't tried it. |
Beta Was this translation helpful? Give feedback.
-
Hi there!, i am also using swiper via Web Component, in an angular application, i'll share with you the solution i did, so it may help for custom arrows navigation!
`<div #prevBtn> `
`
} I Hope this can help someone! |
Beta Was this translation helpful? Give feedback.
-
The webcomponent documentation says there are only 2 parts, swiper-container and swiper-slide. But In 'normal' swipers you wrap the slides inside
.swiper-wrapper
div.How can I add custom navigation and make sure the navigation is not part of the 'slides' div? What am i missing?
Beta Was this translation helpful? Give feedback.
All reactions