Reordable rows on dragn drop #308
Replies: 2 comments 4 replies
-
I actually have a fully working branch of livewire sortable sorting rows and calling a user-defined update method. However, it only works on a per-page basis, so if you sort rows on one page and switch pages and sort rows on another page, it doesn't work because the indexes are reset to 0-N (per page). The only way it really makes sense would be to only use it when you are looking at all rows at a time. That and the amount of code that I added was a lot to maintain vs. the number of people that would probably use the feature. So I ended up dumping it. |
Beta Was this translation helpful? Give feedback.
-
This is present in v2+ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
It would be awesome for this package to support livewire sortable package. I managed to get it working but i need to add public $orderable property in the main component in order to access it in table components in blade views. Right now i am faking it with true false set in the table blade component.
I would switch sortable naming to orderable so it does not messup this compoenent sortable functions.
I modified tbody and row components to apply the orderable actions if the orderable property is set to true.
Do you think that you could approve it?
Beta Was this translation helpful? Give feedback.
All reactions