question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use it? i’ve seen in a question to you it this way

but not sure how that would work


    $('.fade').slick({
        dots: true,
        infinite: true,
        speed: 500,
        fade: true,
        slide: 'div',
        cssEase: 'linear',        
            customPaging: function(slick,index) {
                return '<a> ' + index + '</a>';
            }

    });


                <div class="slider fade">
                    <div><div class="image"><a href="#"><img src="img/fonz1.png"/>something</a></div></div>
                    <div><div class="image"><img src="img/fonz2.png"/></div></div>
                    <div><div class="image"><img src="img/fonz3.png"/></div></div>
                </div>

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Johan-CRcommented, Apr 19, 2017

Heres a little example of the user “simeydotme” that I change for just that Maybe can help! https://jsfiddle.net/Johan_CR/p2e0Lw1L/

1reaction
kenwheelercommented, May 8, 2014

I’m not sure what the question is. The customPaging option renders elements that represent the interior of the dot indicator LI elements. So you set a return and it renders one for each. Like:

customPaging: function(slick,index) {
    var targetImage = slick.$slides.get(index).find('img').attr('src') || '';
    return '<img src=" ' + targetImage + ' "/>';
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

slick.js customPaging - CodePen
URL Extension Required. When linking another Pen as a resource, make sure you use a URL Extension of the type of code you...
Read more >
Custom Paging - React Slick Documentation - neostack
The last react carousel you will ever need.
Read more >
CustomPaging Plugin Reference | DevExtreme Reactive
A plugin that allows implementing a custom totalCount calculation logic. Import. Use the following statement to import the plugin: import { CustomPaging } ......
Read more >
Slick Slider - customPaging (ie. 01/04) - Change color and font ...
Using Slick.js - I want to change the color and font-size of the pages when it's active, like the example: enter image description...
Read more >
akiran/react-slick - Custom Paging with text instead of dots
I've tried logging props as well and it doesn't seem like any props are passed to the customPaging.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found