You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone , i want to implement the functionality that can reorder (drag and drop) with nested array of objects , everyone work fine but i dont succeed to create the fucntion that update the data after drag and drop
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone , i want to implement the functionality that can reorder (drag and drop) with nested array of objects , everyone work fine but i dont succeed to create the fucntion that update the data after drag and drop
<MaterialReactTable editingMode={'row'} columns={columns} data={data} enableColumnResizing={true} enableRowOrdering enableSorting={true} enableRowSelection={true} enableEditing={true} muiTableBodyRowDragHandleProps={({ table }) => ({ onDragEnd: () => { const { draggingRow, hoveredRow } = table.getState() } }) })} enablePagination={false} enableExpanding getSubRows={(originalRow: any) => originalRow.children} // default, can customize />
`[
{
"id":201,
"uuid":"a64b824f-b229-4773-91e3-f70aabe9eae1",
"type":"milestone",
"parent":0,
"start_date":16692455000,
"end_date":1669248000,
"duration":null,
"unscheduled":false,
"virtual":false,
"description":"FOT",
"status":null,
"children":[
},
{
"id":203,
"uuid":"046ef363-73ae-467c-ae64-69411e9af3c7",
"type":"family",
"parent":0,
"start_date":1669248000,
"end_date":1669248000,
"duration":null,
"unscheduled":false,
"virtual":false,
"description":"Post FOT",
"status":null,
"children":[
{
"id":25,
"uuid":"62febad1-4156-4aa1-a3c0-4c98343e7973",
"type":"task",
"parent":203,
"start_date":1669251600,
"end_date":1669256280,
"duration":1.3,
"unscheduled":false,
"virtual":false,
"description":"ASSIST TRACTAGE A/C VERS FLIGHTLINE",
"status":null,
"children":[
},
{
"id":255,
"uuid":"c56ab89a-74e3-484a-ae6c-3e070a3e0ad0",
"type":"family",
"parent":0,
"start_date":1669248000,
"end_date":1669248000,
"duration":null,
"unscheduled":false,
"virtual":false,
"description":"PREPA A/C FLIGHTLINE",
"status":null,
"children":[
{
"id":21,
"uuid":"3a8d60fc-f761-4ca0-b55a-6f9d398bb93b",
"type":"task",
"parent":255,
"start_date":1669266360,
"end_date":1669269960,
"duration":1,
"unscheduled":false,
"virtual":false,
"description":"INSTALL FIREBAG COCKPIT",
"status":null,
"children":[
{
"id":196,
"uuid":"c9236a07-72c1-471e-96c2-47e540536dae",
"type":"task",
"parent":21,
"start_date":1669266360,
"end_date":1669269960,
"duration":1,
"unscheduled":false,
"virtual":false,
"description":"MONTER TETIERES SECU TOBOGGAN APRES FOT",
"status":null,
"children":[
}

]`
Beta Was this translation helpful? Give feedback.
All reactions