Row reorder with create, update, remove ajax call
Row reorder with create, update, remove ajax call

I have ajax calls like this:
editor = new $.fn.dataTable.Editor( {
idSrc: 'id',
ajax: {
cache: true,
create: {
type: "POST",
url: "/api/boards"
},
edit: {
type: "PATCH",
url: "/api/boards/_id_"
},
remove: {
type: "DELETE",
url: "/api/boards/_id_"
}
},
......
Is it possible to call rowReorder extension and update row order with the structure like this?
It works fine but i dont have idea how i could create ajax endpoint after dropping a row in different place.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Full javascript code:
Here you can see my project :
https://crmclone.herokuapp.com/boards/1
The RowReorder is classed as an edit - so it would just work the same as a normal edit. This example here should help. Please let us know if that doesn't solve it,
Colin