-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Add first & last buttons in pagination. #159
Conversation
Signed-off-by: tbekos <tbekos@gmail.com>
Signed-off-by: tbekos <tbekos@gmail.com>
Looks OK to me. Should the text options, like first-text, etc. be configurable in a config constant? |
👍, looks good @bekos! This is a good time to add the config constant as Pete said. @bekos if you want to check out how the config constant is added in another directive, see buttons.js for an example. |
* Added paginationConfig constant. * Added tests for configuration parameters. Signed-off-by: tbekos <tbekos@gmail.com>
Added configuration options in constant and the appropriate tests. |
@bekos Thnx for working on this pagination thing. I was trying to merge it today but I've noticed that it doesn't work correctly in the first & last options are not enabled. The reason for this is that Bootstrap is using pseudo-class selectors ( I'm not sure what is the best solution for this problem atm so it will require some more thinking and work. Going to close this PR for now as it requires further work. Please open another one when you've got a better idea of sorting this out. |
@pkozlowski-opensource You are right. I didn't notice it because in my application I always use first & last buttons! Btw, why ui-if from AngularUI is not part of the core application, as ng-if? |
unit tests, unit tests, unit tests, ... :-) On 25 February 2013 08:25, Tasos Bekos notifications@github.com wrote:
|
Well, this one was CSS really :-) So not sure how to write a test for this... |
Added optional buttons in pagination directive to quickly move to first and last page.
The attribute to display or not these buttons is
boundary
. Also there is a chance to change the default labelsFirst
andLast
by definingfirst-text
andlast-text
.