- Issue created by @joachim
- πΊπΈUnited States EHLOVader
I ran into an issue with this while trying to implement DraggableListBuilderTrait on a custom entity ListBuilder.
I was trying to get away without an entity draggable class to extend but getting the order of the columns is important.The draggable list anchor is added to the first cell in the rows. When I first attempted the implementation I had Weight before the table rows and since weight is hidden by default so was the anchor handle.
I sorted this out after looking at the source from 2990784 β¨ Add a draggable list builder for content entities RTBC where I decided just to implement my own DraggableListBuilder based on it.
That makes the order of buildRow calls [my buildRow]+[parent[ trait+parent] ] so I get my columns, weight column, operations column.
but what's wrong with the operations that it doesn't like??
I also think I know what the issue with this might be... with the operations being interactive it probably interferes with the click and drag actions of the anchor.
I wonder if Draggable should have an anchor column, but not sure how it could reach out of the parent class to provide that at the beginning because of my experience with the order that each method runs.