Export orders as PDF
Moey extras
Kanban
Columns of cards you drag from one stage to the next — with a mouse, a finger or the keyboard. Counts keep themselves up to date, a column can have a limit, and your app hears about every move (and can say no).
Backlog
Dark mode for emails
To do
Fix the checkout total rounding
Add a coupon field
In progress
New product page layout
Stock sync with the warehouse
Done
Faster image loading
Drag a card to another column. With the keyboard: Tab to a card, Space to pick it up, arrows to move, Space to drop.
<div class="kanban" data-moey-kanban>
<section class="kanban-column" data-id="todo" data-moey-limit="3">
<header class="kanban-header">
<h3 class="kanban-title">To do</h3>
<span class="kanban-count"></span>
</header>
<div class="kanban-list">
<article class="kanban-card" data-id="t4">
<div class="kanban-card-title">Fix the checkout total rounding</div>
<div class="kanban-card-meta">
<span class="badge badge-red">Bug</span>
<span class="avatar avatar-xs">MR</span>
</div>
</article>
</div>
</section>
…
</div>
<script>
board.addEventListener('moey:move', (e) => {
const { id, from, to, index } = e.detail; // 't4', 'todo', 'doing', 0
if (to === 'done' && !confirmedByQA(id)) e.preventDefault(); // say no: the card goes back
else save(id, to, index);
});
</script>
On phones
One column per screen with the next one peeking in — swipe sideways and it snaps. A normal swipe scrolls; press and hold a card to lift it, then drag it (near the edge, the board scrolls to the next column for you). Try it in the phone:
Backlog
Export orders as PDF
Dark mode for emails
To do
Fix the checkout total rounding
Add a coupon field
In progress
New product page layout
Stock sync with the warehouse
Done
Faster image loading
Keyboard
| Keys | What they do |
|---|---|
| Tab · ↑ ↓ ← → | Go from card to card, and from column to column |
| Space / Enter | Pick the card up · drop it |
| ↑ ↓ · ← → · Home End (holding a card) | Move it within the column · to the column before or after · to the top or bottom |
| Esc | Put it back where it was |
Each step is read out ("In progress, position 2 of 3"). Buttons and links inside a card still work as usual — a card with a link opens it on Enter, so use Space to pick it up.
From JavaScript
const board = Moey.kanban('#board');
board.move('t4', 'doing', 0); // card id (or element), column id (or element), position
board.value(); // { backlog: ['t7', 't8'], todo: ['t5'], doing: ['t4', 't2', 't3'], done: ['t1'] }
// New cards and columns can be added any time — counts and keys pick them up
list.insertAdjacentHTML('beforeend', '<article class="kanban-card" data-id="t9">…</article>');
Reference
| Class / attribute | What it does |
|---|---|
.kanban[data-moey-kanban] | The board: columns side by side, scrolls sideways; one column per screen on phones |
.kanban-column[data-id] · .kanban-header · .kanban-title · .kanban-count | A column, its header, its name and its card count (filled in for you) |
data-moey-limit="3" on a column | Shows "2 / 3"; marks the column full, and over the limit in red (moving in is still allowed — refuse it in moey:move if you want) |
.kanban-list · data-empty="Drop here" | Holds the cards (scrolls with --mo-kanban-height) · the text of an empty column |
.kanban-card[data-id] · .kanban-card-title · .kanban-card-meta | A card, its title (read out when it moves) and a row of small details |
.kanban-footer | Under the list: an "Add card" button |
data-moey-no-drag | Inside a card: this part doesn't start a drag (buttons, links and fields never do) |
--mo-kanban-column-width · --mo-kanban-height · --mo-kanban-gap | 18rem (phones: 85%) · none (set one to scroll each column) · .75rem |
Event moey:move | On the card, cancelable: detail: { card, id, from, to, fromIndex, index, fromColumn, toColumn } |
Moey.kanban(el) | { move(card, column, index), value(), refresh() } |