flaviusmatis / flaviusmatis/simplePagination.js

Move to first page or last page on out of range input to ellipsePageSet

Open
#144 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
777
Forks
397
PR merge metrics
No merged PRs in 30d

Description

Now whenever out of range input is provided to ellipsePageSet nothing happens it stays in the same page.

I want to move to first page if input value is less than first page i.e if input is 0 or negative numbers and in the same way move to last Page if input value is more than total number of pages.

Already made the necessary changes to the code if you like this idea I will make a pull request.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the ellipsePageSet entry point in the simplePagination.js plugin and trace how out-of-range values are handled. Done means values below the first page select the first page, values above the total select the last page, and in-range values continue to work unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.