brantwills/Angular-Paging

Configurable maximum pages to display

alphafitch opened this issue · 2 comments

Firstly, this is a really great component!

Whilst using it I have noticed that on devices with smaller screens it would be nice to avoid the wrapping by having an option to set the maximum number of pages in the page list.

See example screenshot of wrapping, using Chrome with size set to 320x640 below.

In this scenario if you could set a parameter in the directive, max-pages-to-show="3" to only show < 1, 2, 3, ... > for mobile, it would avoid the wrapping.

I will try and experiment to see what's possible myself, but I thought I'd put in a feature issue as you know the code better!

screen shot 2016-06-10 at 13 06 42

Hey Alphafitch,

Sounds awesome and thank you for detailing the issue, I can see how that would quickly become annoying!

I really like the idea of having a max page setting. I think there are some use cases to work out and I would kill to have this somehow responsive (thinking it shows normally when expanded but will hide on smaller devices) but that may not be quite possible without some CSS magic.

I will mark this as an enhancement for now and start kicking around some ideas.
Please feel free to add any additional code or comments to this issue

Thanks again!

I know angularjs is old(still working on 1.2 :( ), but do we have any option to make it responsive now? Haven't found anything in docs :(
Thx!