formkit / drag-and-drop

https://drag-and-drop.formkit.com
MIT License
1.36k stars 24 forks source link

Documented event listeners / callbacks not implemented? #95

Open joostthehost opened 4 weeks ago

joostthehost commented 4 weeks ago

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;
sashamilenkovic commented 4 weeks ago

@joostthehost Ah, I did not mean to update the production docs. These events will be available upon the next release.

joostthehost commented 4 weeks ago

Ah, thanks for the fast reply and clarification. I'll be looking out for the next release then, as these callbacks seem very useful! :)