flaviusmatis / flaviusmatis/simplePagination.js
Please update documentation
- Dominant language
- JavaScript
- Stars
- 777
- Forks
- 397
- PR merge metrics
- No merged PRs in 30d
Description
Hi
I tried to disable "default click" action, but there wan't any way to disable so that I could run my own command on clicking.
In documentation "http://flaviusmatis.github.com/simplePagination.js/" I couldn't find any option but then I opened JS file..
https://github.com/flaviusmatis/simplePagination.js/blob/master/jquery.simplePagination.js
and there I saw "useAnchors" a boolean.. to disable/enable "default click action". I added in my code.
```
$('.pagination_container').pagination({
pages: total_pages,
cssStyle: 'dark-theme',
displayedPages: 5,
hrefTextPrefix: '',
useAnchors:false,
currentPage:pageno,
edges: 2,
onPageClick: function (page, event) {
filterSearchQueryArray['paged'] = page;
pushToHistory(true, filterSearchQueryArray);
}
});
```
... then I was able to run my custom function only.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the documentation page at http://flaviusmatis.github.com/simplePagination.js/ and compare it with the useAnchors option in jquery.simplePagination.js. Document the option and its relationship to the default click behavior, including the usage shown in the issue, then verify the published documentation reflects it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100