Using rowReorder via javascript to move a row up or down
Using rowReorder via javascript to move a row up or down
tikola
Posts: 3Questions: 2Answers: 0
Is it possible to move a selected row via Javascript up or down using the rowReorder extension?
Many Thanks.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Currently no - it is only user interaction.
Part of the reason for this is that the row order is defined by the data in the table, so if you wanted to change its order, you would just use the DataTables API to update the data. I see however that it might be useful to present an API and have RowReorder do a lot of the work for you. I've added it to my future enhancements list.
Allan
Many Thanks