RowReorder not working
RowReorder not working
I'm trying to use a simple row reorder, ordering only by the column "Order" of the table. I imported the css and js, and tried to add this to my DataTable init:
rowReorder: true,
columnDefs: [
{ orderable: true, className: 'reorder', targets: 0 },
{ orderable: false, targets: '_all' }
],
But it doesn't work at all. I'm new to DataTables so bear with me.
Here is the full DataTable init code and imports: https://gist.github.com/Biscuri/6d197e056f1d391360a769b1902c012b
It's inside a heredoc and injected on main page (I know, the code is full of Macgyvers).
The dataTable works fine, only the rowReorder isn't working.
Any tips will be appreciated, thanks in advance.