Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed negative pages & Added params to paginationHelper & cleanup of code #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

twickstrom
Copy link

Was producing negative page links.

params options include:

paginationClass (String): class name for bootstrap(like) pagination
div. Default: pagination

first (String): Text for first pager. Default: ← First

last (String): Text for last pager. Default: Last →

previous (String): Text for previous pager. Default: ← Previous

next (String): Text for next pager. Default: Next →

Was producing negative page links.
params options include:

paginationClass (String): class name for bootstrap(like) pagination
div. Default: pagination

first (String): Text for first pager. Default: ← First

last (String): Text for last pager. Default: Last →

previous (String): Text for previous pager. Default: ← Previous

next (String): Text for next pager. Default: Next →
@twickstrom
Copy link
Author

In the view you can:

<%- paginate(clients, 3, {
paginationClass: 'pagination pagination-centered',
next: '>',
last: '>>',
first: '<<',
prev: '<'
}) %>

OR

<%- paginate(clients, {
paginationClass: 'pagination pagination-centered',
next: '>',
last: '>>',
first: '<<',
prev: '<'
}) %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant