drag-and-drop
drag-and-drop copied to clipboard
Documented event listeners / callbacks not implemented?
According to the docs, there should be a bunch of Event Handlers. However, when trying to implement any one of those, it appears like they just aren't implemented?
Configuration in docs. The event listeners are reported at the end of the config section.
/**
* EVENT LISTENERS:
*
* Callback function for when a sort operation is performed.
*/
onSort?: SortEvent;
/**
* Callback function for when a transfer operation is performed.
*/
onTransfer?: TransferEvent;
/**
* Fired when a drag is started, whether native drag or synthetic
*/
onDragstart?: DragstartEvent;
/**
* Fired when a drag is ended, whether native drag or synthetic
*/
onDragend?: DragendEvent;
@joostthehost Ah, I did not mean to update the production docs. These events will be available upon the next release.
Ah, thanks for the fast reply and clarification. I'll be looking out for the next release then, as these callbacks seem very useful! :)
@sashamilenkovic, I don't want to push you, but I'm curious if you can tell us when to expect the next release? I'm asking because I'm in a real need of more advanced drag and drop options in my project ;)
@joostthehost Very fair question! I was aiming to get out v0.2.0 last weekend but couldn't quite get it across the finish line. I would guess the next release will come out a week or so from now.
@joostthehost As ov v0.2.0, there are not both global and parent event listeners: https://drag-and-drop.formkit.com/#events