-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add ability to change pagination page name #2613
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
Conversation
@ahmedabdel3al not sure if you have seen, a similar PR #1997 has been submitted in the past. Have a look at Caleb's comments on there. I think for this PR to be successful, the trait must still work in the same way it did before (so those failing dusk tests should pass without any changes needed to be done to them. I believe if you still have a I would then revert the changes you made to test and insure it also passes, and instead add new tests for the custom page names. The other thing to consider, is by adding Hope this helps! |
thanks for your reply, but what do you suggest to fix this issue? |
@ahmedsayedabdelsalam I think this PR had merit, not sure why it was closed. Just needs to change a few of the things like I suggested, to ensure it's not a breaking change. But if you want a user-land solution, you could probably create your own pagination trait and make use of that instead of Livewire's withPagination. Hope this helps! |
thanks for your reply @joshhanley it was closed because some dusk tests fail, we need to add the ability to live wire to override the I think you've access to change things in this pr and make it works if you wish and this will be great. |
@ahmedsayedabdelsalam just because they fail doesn't mean it needs to be closed 🙂 but it could probably have been marked as draft again. Sadly, I don't have permissions do that. But I also don't personally have a need for multiple pagination in the same component. I was offering suggestions of what could enable it to be approved and merged, so if you or anyone who has the need for this feature, could implement it and have a higher chance of it being successful. I'm happy to guide people to a solution though. Hope this helps! P.s. When making a PR, ensure the PR is not on the master branch in the forked repo, as @calebporzio can't edit them. For example this PR is on |
add the ability to change pagination's page name
sometimes we use multiple tables in the same page and this will make conflict between the tables pagination
This PR will help make anyone uses
WithPagination
trait to override thepageName
and this will solve the conflictThis will fix this issue MedicOneSystems/livewire-datatables#119 too