Datatbles.net rowReorder
Hi,
How can I rowReorder for datatables.net ?
I tried the examples on datatables.net.
Replies (1)
Hi,
To enable row reordering in DataTables.net, add the following configuration when initializing your DataTable:
$(document).ready(function() {
var table = $("#yourDataTable").DataTable({
rowReorder: {
selector: "tr"
}
});
}); This code will enable row reordering in your DataTable, allowing you to drag and reorder rows. Just replace #yourDataTable with your table's actual ID or selector.
Thanks