Sortable List
Reorder items via two equal, parallel paths: dragging a handle (Pointer Events - works with mouse, touch, and pen) and up/down buttons, the only path for keyboard and screen-reader users.
Navigation menu order
A common admin scenario: a client sets their own site menu
order. The data-sortable class on the container
is all it takes - js/modules/molique-sortable.js
loads itself.
-
Home
-
About
-
Services
-
Contact
<ul class="sortable-list" data-sortable>
<li class="sortable-item">
<button class="sortable-handle" aria-label="Drag to reorder">
<svg class="icon" aria-hidden="true"><use href="img/icons-sprite.svg#ph-dots-six-vertical"></use></svg>
</button>
<div class="sortable-content">Home</div>
<div class="sortable-controls btn-action-group">
<button class="btn-action" data-sortable-up aria-label="Move up">
<svg class="icon" aria-hidden="true"><use href="img/icons-sprite.svg#ph-arrow-up"></use></svg>
</button>
<button class="btn-action" data-sortable-down aria-label="Move down">
<svg class="icon" aria-hidden="true"><use href="img/icons-sprite.svg#ph-arrow-down"></use></svg>
</button>
</div>
</li>
<!-- more .sortable-item -->
</ul>
With a file list (.data-row-compact)
Item content is anything - here wrapped in the Compact Data Row variant, with an icon and details.
-
Master Agreement.pdf2.4 MB
-
Price List 2026.xlsx890 KB
-
Presentation.pdf5.1 MB
Zero config, zero backend
After every change (drag or button) the container emits
CustomEvent('sortable:update', { detail: {
order, items } }) - persisting the new order
is your app's job. Full class/attribute/event reference in
the Admin docs.