Skip to content

Thanks #1

@GitClickOk

Description

@GitClickOk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions