Moey Icons
No results. Try “dialog”, “dark” or “grid”.
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

Export orders as PDF
Feature 2 AK
Dark mode for emails
Design LF

To do

Fix the checkout total rounding
Bug Dec 2 3 MR
Add a coupon field
Feature Dec 6 SO

In progress

New product page layout
Design Nov 28 5 AK
Stock sync with the warehouse
Feature Nov 30 1 LF

Done

Faster image loading
Speed 4 SO

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:

A real 360px page — press and hold a card

Keyboard

KeysWhat they do
Tab · ↑ ↓ ← →Go from card to card, and from column to column
Space / EnterPick 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
EscPut 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 / attributeWhat 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-countA column, its header, its name and its card count (filled in for you)
data-moey-limit="3" on a columnShows "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-metaA card, its title (read out when it moves) and a row of small details
.kanban-footerUnder the list: an "Add card" button
data-moey-no-dragInside a card: this part doesn't start a drag (buttons, links and fields never do)
--mo-kanban-column-width · --mo-kanban-height · --mo-kanban-gap18rem (phones: 85%) · none (set one to scroll each column) · .75rem
Event moey:moveOn the card, cancelable: detail: { card, id, from, to, fromIndex, index, fromColumn, toColumn }
Moey.kanban(el){ move(card, column, index), value(), refresh() }