Using rowReorder via javascript to move a row up or down

Using rowReorder via javascript to move a row up or down

tikolatikola 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

Answers

  • allanallan Posts: 63,696Questions: 1Answers: 10,500 Site admin
    Answer ✓

    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

  • tikolatikola Posts: 3Questions: 2Answers: 0

    Many Thanks

This discussion has been closed.