Issue with reordable table
Solution:Jump to solution
You click the button and the table starts "reorder mode". You can then reorder entries via the arrows at the beginning
22 Replies
Just the method defintiion is a bit sparse information to help
I know, 1m pls
Still working on it
This is how the table looks like
In my User Model
Actuallly, here is the whole resource
If you need more info, pls let me know
So the reorder action is missing? 🤔
Yep
I see you use Shield. Do you have the permission to reorder?
I also checked v4, and its the same (the only difference is that at the header of the table I see that arrows that go ^v), but the rows didnt have any handles to drag
yep
wait
do I?
1s
Can you remove Shield from that Resource to verify?
Still nothing
And i restarted localhost
Can you reproduce this on a fresh install?
Otherwise: Maybe policies or additional code on ListUsers?
ok, it has to do with permissions I think. I went to the policy, and for debugging purposes, I set reorder to return true. Now I get this
You can see the arrows at the top, buit I cant drag them
You don't drag them. It's an action. You click it to enable reorder mode
Did you configure
->iconButton()
somewhere globally?
Not sure whether they are an icon button by default or should have text explainingNo I dont think so
I think youre right. Its done with
So then how does reorderable() work?
Solution
You click the button and the table starts "reorder mode". You can then reorder entries via the arrows at the beginning
I see now. Then this issue is resolved. Thanks for helping :)