Index

mmo-boarding

1 symbol · generated 30 Sep 2026

element

mmo-boarding

mmo-boarding.jhs:1

Kanban board layout with drag & drop support.

<mmo-boarding></mmo-boarding>
Extends
CustomShadowElement
Items are slotted children distributed into columns via their `data-column-id` attribute. Usage: <mmo-boarding> <div data-column-id="todo">Task 1</div> <img data-column-id="doing" src="preview.png"> <mmo-widget data-column-id="done">Complex content</mmo-widget> </mmo-boarding> Columns are data-driven via the `columns` property. Items are DOM-driven: any child with `data-column-id` is placed in the matching column. Events: - 'item-move' : { element, fromColumnId, toColumnId, index } - 'column-move' : { order } - 'change' : fired after any item or column reorder

Index

ViewDefault static readonly accessor
columns accessorGet the columns
init()
cleanDrag()Clean the drag
commitColumnOrder()Commit a column order
commitItemMove(el, toColumnId, insertIndex)Commit an item move
distributeItems(slot)Move slotted elements into their target column body
doRenderBoard()Render the board
getItemInsertPoint(body, y)Get the item insert point
placeItem(el)Place a single element into its column body based on data-column-id
renderBoard()Render the board
renderColumn(col)Render a column
setupItemDrag(el)Attach drag & drop listeners to an item element
sortItems(comparator)Sort items within each column
updateColumnCount(colId)Update the column count
(default)the cards: any element carrying data-column-id, placed in the column of that id

Properties2

Methods13

commitItemMove(el, toColumnId, insertIndex)

mmo-boarding.jhs:113

Commit an item move

commitItemMove(el, toColumnId, insertIndex)
elHTMLElement
toColumnIdstring
insertIndexnumber

distributeItems(slot)

mmo-boarding.jhs:135

Move slotted elements into their target column body

distributeItems(slot)
slotHTMLSlotElement

getItemInsertPoint(body, y)

mmo-boarding.jhs:183

Get the item insert point

getItemInsertPoint(body, y)
bodyHTMLElement
ynumber
returnsHTMLElement

placeItem(el)

mmo-boarding.jhs:198

Place a single element into its column body based on data-column-id

placeItem(el)
elHTMLElement

setupItemDrag(el)

mmo-boarding.jhs:340

Attach drag & drop listeners to an item element

setupItemDrag(el)
elHTMLElement

sortItems(comparator)

mmo-boarding.jhs:367

Sort items within each column

sortItems(comparator = 'alpha')
comparator = 'alpha'string | Function- 'alpha' for alphabetical, or a custom comparator function

updateColumnCount(colId)

mmo-boarding.jhs:386

Update the column count

updateColumnCount(colId)
colIdstring

Slots1

(default)

mmo-boarding.jhs

the cards: any element carrying data-column-id, placed in the column of that id

<slot>