ashok
December 13, 2019, 12:54pm
1
In one of my projects, I want to implement paging for a list of users. Also, I want to give some filter options like search by name or email please suggest how should I proceed?
I have seen hex doc URL:
https://hexdocs.pm/phoenix_pagination/Phoenix.Pagination.html
https://hexdocs.pm/phoenix_pagination/Phoenix.Pagination.html
but not getting how to do it. Is there any live demo or any shortcode snippet for it.
1 Like
For filtering results:
For pagination:
I also have this https://github.com/wolfiton/blog_api and i will add more to this in the future, it is for lerning purposes.
1 Like
ashok
December 16, 2019, 5:47am
5
I have reached to forum thread Rummage.Ecto - Searching, Sorting and Pagination in Ecto & Phoenix which is exactly I need in my project but when try to set the deps as suggested I am not able to install this module in my project.
Where can I get the settings to install in my project elixir 1.9.4 and Phoenix 1.4.11
Have you read this thread https://github.com/annkissam/rummage_phoenix/issues/68 , if you do then a lot of users state that this library is not ready for phoenix 1.4.
ashok
December 16, 2019, 9:54am
7
Yes I have seen but it may possible that after the comment Author has updated the library. That’s why I have given the link of the thread