The Sortable widget allows users to reorder elements using drag-and-drop. In this demo, two different Sortables are used. You can identify them in the code by the
This Sortable allows users to reorder card lists. The widget nests
<div> elements that represent the lists. The handle option specifies that lists can be dragged by their titles. To correctly animate items being reordered, Sortable requires the item orientation. The itemOrientation option is set to "horizontal" because card lists are orientated horizontally.
This Sortable allows users to reorder cards. The widget nests
<div> elements that represent all cards in a specific list. All Sortables are added to the same group to allow users to move cards between lists.
In addition to Sortable, this kanban board implementation uses the ScrollView widget. The widget's instance with the
scrollable-board class allows you to scroll the board left to right. The widget's instance with the
scrollable-list class makes lists scrollable.