2

Has anyone tried to integrate react-dnd or another lib into admin on rest? I wanted to make datagrid draggable inside a referencearrayfield.

Should i write my own component overriding datagrid or there's a simple way to do it?

Thanks!

Christiaan Westerbeek
  • 10,619
  • 13
  • 64
  • 89
annared
  • 81
  • 4
  • This is a requirement for the app I'm building too. Starting here: https://github.com/marmelab/react-admin/pull/1836 . I may report back once I have a solution. – Christiaan Westerbeek Jun 23 '18 at 08:50

2 Answers2

1

You'll have to implement a custom datagrid for that

Gildas Garcia
  • 6,966
  • 3
  • 15
  • 29
0

Although experimental you can have a look on this plugin: https://github.com/marmelab/react-admin/tree/master/packages/ra-tree-ui-materialui

It has as dependency react-dnd and it seems that it is editing the listing. Not sure if it can update a property used for ordering like order for example

Michail Michailidis
  • 11,792
  • 6
  • 63
  • 106