mmo-boarding
1 symbol · generated 30 Sep 2026
mmo-boarding
mmo-boarding.jhs:1Kanban board layout with drag & drop support.
- Extends
- CustomShadowElement
Index
| ViewDefault static readonly accessor | ||
| columns accessor | Get 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
ViewDefault
staticreadonlyaccessormmo-boarding.jhs:30columns
accessormmo-boarding.jhs:57Get the columns
Methods13
init()
mmo-boarding.jhs:36cleanDrag()
mmo-boarding.jhs:72Clean the drag
commitColumnOrder()
mmo-boarding.jhs:87Commit a column order
commitItemMove(el, toColumnId, insertIndex)
mmo-boarding.jhs:113Commit an item move
| el | HTMLElement | |
| toColumnId | string | |
| insertIndex | number |
distributeItems(slot)
mmo-boarding.jhs:135Move slotted elements into their target column body
| slot | HTMLSlotElement |
doRenderBoard()
mmo-boarding.jhs:148Render the board
getItemInsertPoint(body, y)
mmo-boarding.jhs:183Get the item insert point
| body | HTMLElement | |
| y | number | |
| returns | HTMLElement |
placeItem(el)
mmo-boarding.jhs:198Place a single element into its column body based on data-column-id
| el | HTMLElement |
renderBoard()
mmo-boarding.jhs:210Render the board
renderColumn(col)
mmo-boarding.jhs:222Render a column
| col | Object | |
| returns | HTMLElement |
setupItemDrag(el)
mmo-boarding.jhs:340Attach drag & drop listeners to an item element
| el | HTMLElement |
sortItems(comparator)
mmo-boarding.jhs:367Sort items within each column
| comparator = 'alpha' | string | Function | - 'alpha' for alphabetical, or a custom comparator function |
updateColumnCount(colId)
mmo-boarding.jhs:386Update the column count
| colId | string |
Slots1
(default)
mmo-boarding.jhsthe cards: any element carrying data-column-id, placed in the column of that id
<slot>