Code Monkey home page Code Monkey logo

jquery-paginate's People

Contributors

wikiti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jquery-paginate's Issues

ellipsis page numbers

Hi.

I have a set of results paginated to over 100 pages. Is there any way to format the navigation to say something like:

<< < 1 2 3 ... 98 99 100 > >>

Apologies if this is in the documentation, I couldn't seem to find it.

Thanks

For the time being I'm just doing this:
pageCount = $('.page-navigation a').length; if (pageCount > 20) { $('.page-navigation a').hide(); $('.page-navigation a').slice(0, 5).show(); $('.page-navigation a').eq(5).after('...'); $('.page-navigation a').slice(pageCount - 5, pageCount).show();

    $('.page-navigation a').click(function () {
        $('.page-navigation a').hide();
        $('.page-navigation a').slice(0, 2).show();
        $('.page-navigation a').slice(pageCount - 2, pageCount).show();
        $('.page-navigation a[data-selected="true"]').prev().show();
        $('.page-navigation a[data-selected="true"]').show();
        $('.page-navigation a[data-selected="true"]').next().show();
    });
}`

Paginate nested tables?

Hi, thanks for making this. I have a table that has several nested tables in it and was hoping to paginate those. Would this by any chance work on those? I tried to use this and it seems like it's pretty close to working for it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.