sortable
sortable copied to clipboard
third level?
what if i need a third or nth level?
@calebporzio, thanks for this great plugin. If anyone has some time, could you please let me know if it's possible to do 3rd level of draggable features?
@Malebestia, did you find any way to do at 3rd level?
@calebporzio, thanks for this great plugin. If anyone has some time, could you please let me know if it's possible to do 3rd level of draggable features?
@seshac you won't be able to do a third level within a single livewire component but you should be able to have a top level component with each of it's items containing a further livewire component which has two levels.
@Malebestia that could give you four levels I guess but to go to n-levels you'd need n/2 different components all nested. Ever see the film Inception? :)
@colinmackinlay, thank you so much for your help, I will try as you mentioned!.
@colinmackinlay it's not working, the parent component method is trigger while sorting the child component item.
Assume you've done everything here: https://laravel-livewire.com/docs/2.x/nesting-components? If you don't key things properly all sorts of unexpected things happen. I've never actually tried to go to 3 levels but is seems to me that if nested components can work generally then nested sortables should too. I've seen on Twitter that someone else is about to publish an Alpine based approach to sorting which might help. If it happens I'll post the link.
Released today by @asantibanez https://github.com/asantibanez/laravel-blade-sortable Hasn't got multi level but I would imagine it could also sort nested components
Thank you @colinmackinlay!
Hello @seshac
How did you solve this problem? Was your problem the same?