Git Product home page Git Product logo

use-pagination's Introduction

Engineer

use-pagination's People

Contributors

damiisdandy avatar otagera avatar

Stargazers

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

Watchers

 avatar  avatar

use-pagination's Issues

Support larger number of pages

You should be able to have 10 items per page and 1000 pages for the library to be fully functional.

You should control a number of pages display at once. it should use ... markers to indicate that there are more pages in between. There are 3 cases:

  • page at the beginning it should show ... at the end, before the last item that shows the last page.
  • page in the middle it should show ... at start and end, after first and before last
  • page at the end it should show ... at the start after the first item.

Large datasets

I think the pagination UX would be improved if it supported large data sets such that you use a "gap" aka ellipses like:
Screen Shot 2021-12-26 at 11 19 07 PM

How to set current page base on url ?

Let's say I was typing directly in the URL bar to page 3, how I am supposed to pass this page number to use-pagination? Because it always starts at 1 thanks

Prev/Next should be disabled on first/last page

The demo shows that hover effect over prev/next when there is no prev next so it looks that you can click on it but it does do nothing.

The next/prev arrow should be hidden or don't have a hover effect, best if it has a class that can be styled.

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.