I tried to use it for tables not for lists and could not get success. Does it work for tables or not?
https://github.com/RubaXa/Sortable/blob/master/CONTRIBUTING.md
@tdvsdv it works for tables, you need to trigger it on the <tbody> element though (rather than the <table>)
https://jsfiddle.net/pe7jy5w4/2/
My config:
$scope.sortConfig = {
animation: 250,
draggable: '.sort',
handle: '.icon-sort',
};
My html
table > tbody > tr.sort
Most helpful comment
@tdvsdv it works for tables, you need to trigger it on the
<tbody>element though (rather than the<table>)https://jsfiddle.net/pe7jy5w4/2/
My config:
My html
table > tbody > tr.sort