kutlugsahin / smooth-dnd

drag and drop library for javascript
MIT License
598 stars 146 forks source link

switch to reactDropHandler or customized dropHandler in vanilla SmoothDnD #78

Open kenyxy opened 4 years ago

kenyxy commented 4 years ago

smooth-dnd looks fantasic! I intend to use the vanilla SmoothDnD instead of react-smooth-dnd, but I don't like SmoothDnD's default domDropHandler, I prefer to use reactDropHandler or customized dropHandler. Is there is way to switch or provide a way to customize dropHandler?

I saw in https://github.com/kutlugsahin/react-smooth-dnd/blob/master/src/Container.tsx, there is a line to do the switching: container.dropHandler = dropHandlers.reactDropHandler().handler can you show me how with SmoothDnD?