Open mafar opened 6 years ago
When RowReorder runs, it implements a data swap method, rather than just moving the order of the DOM elements. As such, the order applied to the table should still be the order the data is shown in after a row reordering.
Can you give me a link to your page showing the issue so I can understand the problem better please?
I am more interested current dom row order and want to get table data based on applied row reorder
As I said, RowReorder doesn't just move the DOM elements around like jQuery UI Sortable does. It actually chances the data in the table's rows. The result is that the rows are still ordered by DataTables' own sorting. If that isn't happening for you, then there is an issue somewhere and I'd need a test case showing the issue as I requested above.
Like
table.rows({order: 'applied'}).data()
, there should betable.rows({rowReorder: 'applied'}).data()
, so that I can get all data() in table based on current reorder state