sortable icon indicating copy to clipboard operation
sortable copied to clipboard

third level?

Open Malebestia opened this issue 4 years ago • 9 comments

what if i need a third or nth level?

Malebestia avatar Nov 10 '20 16:11 Malebestia

@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 avatar Feb 10 '21 07:02 seshac

@Malebestia, did you find any way to do at 3rd level?

seshac avatar Feb 10 '21 07:02 seshac

@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 avatar Feb 10 '21 08:02 colinmackinlay

@colinmackinlay, thank you so much for your help, I will try as you mentioned!.

seshac avatar Feb 10 '21 09:02 seshac

@colinmackinlay it's not working, the parent component method is trigger while sorting the child component item.

seshac avatar Feb 10 '21 14:02 seshac

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.

colinmackinlay avatar Feb 10 '21 15:02 colinmackinlay

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

colinmackinlay avatar Feb 10 '21 20:02 colinmackinlay

Thank you @colinmackinlay!

seshac avatar Feb 12 '21 05:02 seshac

Hello @seshac

How did you solve this problem? Was your problem the same?

image

dboldbaatar avatar Oct 20 '21 16:10 dboldbaatar