akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.72k stars 2.1k forks source link

appendDots is a different feature to the native Slick...? #1979

Open kyleatcolenso opened 3 years ago

kyleatcolenso commented 3 years ago

appendDots (Vanilla)

"Change where the navigation dots are attached (Selector, htmlString, Array, Element, jQuery object)"

It appears that react-slicks method 'appendDots' simply wraps the dots in a custom element, is this a limitation of React Slick? I'm trying to move the dots outside of the slick scoped node.

YossOviedo commented 3 years ago

I can confirm that this doesn't seem to work the same as native Slick. It is allowing you to override dots and customize them, but if you want to move dots to the top, or in my case custom thumbnails to the top of the slider, there currently is no way. slick-slider allows you to specify a selector to move your dots to.

akiran commented 3 years ago

@YossOviedo You can use custom paging feature for your usecase https://react-slick.neostack.com/docs/example/custom-paging

davidmcnee commented 2 years ago

I create a completely separate "dots" navigation by creating a second slider instance and using asNavFor. I just set slidesToShow to the total number of slides. I used this example https://react-slick.neostack.com/docs/example/as-nav-for