Skip to content

pableke/page-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

page-list

Very simply and minified JavaScript closure to implement pagination list.

Usage

A simple example:

//page-list container
<div id="paginate"></div>

<script type="text/javascript">
	var pl = pagelist($("div#paginate")[0], {
		items: 50,
		itemsOnPage: 5,
		onClick: function(p) {alert("page="+p);}
	}).draw();

	//change the items number listed on page
	setInterval(function() {
		pl.setItemsOnPage(2).draw();
	}, 2000);
</script>

License

(c) 2015-2016 Pablo Rosique, GitHub Inc.

About

Javascript client simple paginator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published