Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mindplay-dk/pager
Generates HTML pager buttons/links/whatever
https://github.com/mindplay-dk/pager
Last synced: 3 months ago
JSON representation
Generates HTML pager buttons/links/whatever
- Host: GitHub
- URL: https://github.com/mindplay-dk/pager
- Owner: mindplay-dk
- Created: 2014-09-25T15:26:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-30T10:41:05.000Z (about 10 years ago)
- Last Synced: 2024-09-08T05:28:52.469Z (4 months ago)
- Language: PHP
- Size: 141 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mindplay/pager
==============[![Build Status](https://travis-ci.org/mindplay-dk/pager.svg?branch=master)](https://travis-ci.org/mindplay-dk/pager)
How many times have I written pagers? Too many.
So here's a distilled abstract base-class for pagers, along with the two kinds of
pagers I have used most frequently: one for `` tags, and one for `` tags.Personally I like `` pagers, which typically require no JavaScript - it can
produce markup along the lines of this:«
1
2
3
4
5 ⋯
10
»Your average everyday link pager produces markup like this:
The markup in both cases is pretty minimal - I didn't want a bunch of configurable
CSS class-names, a container div, or boatloads of other options, but deriving your
own custom pager-classes should be pretty painless. (No guarantees, I said it *should* be.)