Reacting to sortable events
In addition to the already large list of configurable options defined in the sortables class, there are also a whole lot more in the form of event callbacks, which can be passed as functions to execute at different points during a sortable interaction. These are listed in the following table:
Event |
Fired when… |
---|---|
|
Sorting starts on a connected list. |
|
The sort has stopped, but the original slot is still available. |
|
The DOM position of a sortable has changed and the sort is still in progress. |
|
The widget is initialized. |
|
Sorting stops on a connected list. |
|
A sortable is moved out of a connected list. |
|
A sortable is over a connected list. This is great for providing visual feedback while a sort is taking place. |
|
A sortable is received from a connected list. |
|
A sortable is moved from a connected list. |
|
A sort is taking place. |
|
A sort starts. |
|
A sort... |