-
Notifications
You must be signed in to change notification settings - Fork 725
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
[RFR] Refactor datagrid pagination #298
Conversation
expect(totalElement.innerText.trim()).toBe('No record found.'); | ||
}); | ||
|
||
it('should display item range displayed', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review description label
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"it should display the content range currently displayed"
Missing:
|
scope.infinite = true; | ||
}); | ||
|
||
it('should not be displayed if pagination is infinite', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, that's a problem in fact. It's not related with this PR, but infinite pagination hides the total number of results. We need to solve this in the UI.
Any progress? |
160c8b3
to
33f2d9d
Compare
* Limit buttons in case of large content range (closes #296) * Add link to first and last page * Use default Bootstrap markup for pagination
729c9ff
to
0653e4c
Compare
Switching to RFR |
@@ -1,12 +0,0 @@ | |||
<div ng-if="!paginationCtrl.infinite"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed to maDatagridPagination
[RFR] Refactor datagrid pagination
Here is how the pagination nav looks for a 9 page list: