DataTables / RowReorder

Row reordering extensions for DataTables
Other
22 stars 27 forks source link

Selector-Modifier to support RowReorder #22

Open mafar opened 6 years ago

mafar commented 6 years ago

Like table.rows({order: 'applied'}).data() , there should be table.rows({rowReorder: 'applied'}).data() , so that I can get all data() in table based on current reorder state

DataTables commented 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?

mafar commented 6 years ago

I am more interested current dom row order and want to get table data based on applied row reorder

DataTables commented 6 years ago

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.