Paginate icon indicating copy to clipboard operation
Paginate copied to clipboard

Thanks

Open GitClickOk opened this issue 8 years ago • 0 comments

Nice and clean, thanks!

I have extended with some little functions, if you are interested:

This expose totalPages:

Paginate.prototype.pageCount = function () {
	return (this.totalPages);
}

and this if you need interate over all pages:

Paginate.prototype.allPages = function () {	
	var all = [];
	for (var i=1; i <= this.totalPages; i++ )
	{
		all.push(this.page(i));		
	}
	return all;
}

ok, not very efficient... but very useful

GitClickOk avatar Jan 25 '17 04:01 GitClickOk