The advantage would be that using list-links-draggable, with the same or less amount of code we could add a $:/core/ui/ListItemTemplate_with_CloseButton that could be reused in other draglist szenarios . Because in most case if I drag around items in lists I want to be able to remove them.
I had a problem getting this to work:
If given:
<<list-links-draggable itemTemplate:"$:/plugins/JJ/drag-and-close" type:"div" subtype:"span">>
no
What is wrong with this $:/plugins/JJ/drag-and-close
<$link tooltip={{!!title}} >
<div style="width:100%;text-align:left;padding-top:4px"><<targetTiddler>>
<$button class="tc-btn-invisible">{{$:/core/images/cancel-button}}
<$action-listops $tiddler=<<targetTiddler>> $subfilter="-[<currentTiddler>]"/>
</$button><<!--the title which allows to sho an optional alias
<$list filter="[all[current]has[alias]]" emptyMessage={{!!title}}>{{!!alias}}</$list>
</div>
</$link>