Sortable List

This demo shows how to integrate the excellent SortableJS library with Intercooler.

Note that the "server side" implementation is mocked out using mockjax, so you can see the entire implementation. Click the "Source Code" tab to see the code.

Explanation

  • Listen for the "sorted" event fired by Sortable and send the reordered list up to the server via AJAX

Demo

Your Favorite Colors (Drag to reorder)
  • Blue
  • Red
  • Green
  • Yellow
  • Purple