Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I managed to implement the "Scroll Infinite" in "ngTable", had little change in the current code, only adding a new "directive" and a new parameter "
isPagination
" that you guys can improve if possible.Hope this helps everyone, because it helps the mobile also. Below is an explanation of how to use the new featured.
1 - In tag "
<table>
" add the attribute "ng-table-pagination-scroll
", noting that the "ng-table
" attribute is required.2 - If you want the loading, add after the table and remember to use the "
$ scope.isLoading = true | false;
" at the right times. The styles are preloaded, but feel free if you want to change them.3 - I leave below an example of call, to run the "Scroll Infinite", but feel free to improve.
I hope you got something good in the library, and we can improve more and more. Sorry for my English horrible because I am Brazilian.
Hugs