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

Formatting/Limit pagination items. #196

Closed
dunice-igort opened this issue Dec 16, 2016 · 5 comments
Closed

Formatting/Limit pagination items. #196

dunice-igort opened this issue Dec 16, 2016 · 5 comments

Comments

@dunice-igort
Copy link

dunice-igort commented Dec 16, 2016

Hi team,
I like your lib, thanks for documentation, pretty human readable:)

I've sorted out how to configure items per page and current page number. But I still can't configure paging items length. Let me explain I need, that would be limit items for pagination (something like 1 ... 3 4 5 ... 16).

My requerements to have 5 items (for mobile only, because they not fit for parent div block). And I tried total_pages and all other fields realtated to that. Actually I've tried almost all option keys:) But unfortunatly no results..

Could you please assist is it possible to implement by means of ember-cli-pagination?

Thanks once again for your lib.

@broerse
Copy link
Collaborator

broerse commented Dec 16, 2016

Perhaps: {{page-numbers content=content numPagesToShow=3 showFL=true}}

@broerse
Copy link
Collaborator

broerse commented Dec 16, 2016

I see numPagesToShow is not in the doc?

@dunice-igort
Copy link
Author

Oh, thank you very much, it works. But the documentation doesn't contain numPagesToShow

@broerse
Copy link
Collaborator

broerse commented Dec 19, 2016

If you have time to write a PR for the readme I will commit it ;-)

@broerse broerse closed this as completed Dec 19, 2016
@broerse
Copy link
Collaborator

broerse commented Dec 19, 2016

See #197

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

No branches or pull requests

2 participants