flaviusmatis / flaviusmatis/simplePagination.js

Getting Number of Items

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

Description

Thank you for great library, I think SimplePagination.js is great.

This is not an issue, but feature request (I don't know how to raise a feature request, please let me know if there is a way to do this on GutHub).

I use your library, and in my case needed a way to get the number of items... this was needed for updating the pagination... in my local project, I added a function to your library, to get the number of items:

[getItems: function () {
var o = this.data('pagination');
return o.items;
}
](url)

I think it would be useful to add this function to the library.

Thank again for great work,

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in SimplePagination.js and inspect how the pagination data is exposed. Add the requested getItems entry point so it returns the number of items, then verify that the plugin's existing behavior remains intact.

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
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.