angularUtils icon indicating copy to clipboard operation
angularUtils copied to clipboard

dirPagination: Wrong behaviour in showing List Numbers

Open atodicebear opened this issue 9 years ago • 2 comments

Description of issue: At the moment I have a Table which goes about 6 Pages. I set max size="5" so It shows me A1|2|3|..|6. If I click on Page 3 the output is 1|2|A3|...|6

_A stands for Active Selected Page _Steps to reproduce*:

Expected result: It shall show ..|2|A3|4|..|6 . So one Page before and after 3 -> 2+4 Actual result: On my Page it shows <<| <|1| 2| A3| ..|6|>|>> . This is Disturbing because if I selected Page3 the |..| are Disbale and I can only change to Page 4 by clicking on |>| The same goes for the other Site aroun with 4 <<| <| ..|A4|56|>|>> Demo: (for dirPagination, fork and modify this Plunk: http://plnkr.co/edit/b37IdFFJUokaeSummETX?p=preview)

Any relevant code:

Version 0.11.1
<tr dir-paginate="v in $ctrl.langV | orderBy : 'Name' | filter:{Name:k} |itemsPerPage: 10">
<dir-pagination-controls auto-hide="false" boundary-links="true" max-size='5'></dir-pagination-controls>

Its a Simple Pagination without any controller functions for setPages or so.

After Cheking the Example and a bit thinking. Could it be that this is more "Function and not a Bug" ? Default setting is to show the 2before and 2next so by 6 Pages this is normal behaviour?` Is there a Possibility to change that because with less pages this is annoying? To change to show one before/next?

atodicebear avatar Aug 12 '16 10:08 atodicebear

Hi,

This behaviour is being reviewed. There is a pull request (#379) which addresses this, but I have not yet got round to reviewing it. I aim to do so soon.

michaelbromley avatar Aug 12 '16 13:08 michaelbromley

Hi I'm using dir-pagination,how to hide numbers in dir pagination i want to show the right and left arrow pagination is this possible to hide in dir-pagination

kondalraodurgam avatar Jul 15 '17 11:07 kondalraodurgam