-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Ellipsis to end and begin on pagination #120
Comments
Not a bad idea. If you do work on it read our submission guidelines and make sure you write unit tests for the new functionality. |
We might want to refactor things a bit to add this, actually. Will need to add '...' elements to the page array after the first element and/or before the last, if some conditions are met. I guess that could be done in the for loop currently, but that seems ugly. With the addition of maxSize and then ellipses, the code could get a bit messy here. |
Can't we do it in the template? On 6 February 2013 05:23, Andy Joslin notifications@github.com wrote:
|
Yes, but it would require ng-show or ng-switch, which would create a lot (3x more) of extra elements either way. |
A common (& simpler to implement) practice is to add Example output: Conditions to disable these button is also simple. |
We should have an option for these too! On 12 February 2013 15:17, Tasos Bekos notifications@github.com wrote:
|
I try to make a PR for my suggestion above . I think it is really simple and straightforward to implement. I added three attributes: I also added two scope method My problem here is the tests. With ng-show the So i want to ask if there is a way to avoid it. Is there a filter to select only visible elements or a simple method without ui-if from AngularUI that actually removes the element from the DOM instead of hiding it, or any other suggestion. Thx |
I made a PR for this. #159 |
In working with the pagination system it would be nice to have a feature where ellipsis with escapes to the start and end of the page set automatically appear when the set of pages is greater than max-size. Something like like which would render something like
with an output of
Any interest in this from others? If so I might try to update the current directive and submit back.
The text was updated successfully, but these errors were encountered: