Board
Groups work cards into columns and shows when a work limit is exceeded.
When to use
- Track work as it moves between a few operational states.
Examples
Two work columns
Loading the example
<k:Board label="Packing board">
<k:columns>
<k:BoardColumn key="queued" title="Queued"/>
<k:BoardColumn key="done" title="Packed" state="success"/>
</k:columns>
<k:cards><k:BoardCard key="SO-104" column="queued" title="SO-104" text="Box of pump seals"/></k:cards>
</k:Board>Pick and pack orders
Move SO-104 into Packing to exceed its one-card limit.
Loading the example
<k:Board label="Fulfillment board" cardMove=".onMove" cardPress=".onOpen">
<k:columns>
<k:BoardColumn key="pick" title="To pick"/>
<k:BoardColumn key="pack" title="Packing" limit="1" state="wait"/>
<k:BoardColumn key="done" title="Ready" state="success"/>
</k:columns>
<k:cards>
<k:BoardCard key="SO-104" column="pick" title="SO-104" text="Valve kits" person="Elif Aydın" meta="12" tag="Parcel"/>
<k:BoardCard key="SO-105" column="pack" title="SO-105" text="Pump seals" person="Mert Kaya"/>
</k:cards>
</k:Board>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.PackingBoard", {
onMove(event) {
Toast.show(event.getParameter("card").getTitle() + " · Moved");
},
onOpen(event) {
Toast.show(event.getParameter("card").getText());
}
}));Keyboard
- Ctrl+← Ctrl+→
- Move a focused card to the adjacent column.
- Enter
- Open the focused card.
API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
label | string | Accessible name |
Aggregations
| Name | Type | Description |
|---|---|---|
columns | BoardColumn[] | Board columns |
cards | BoardCard[] | Work cards |
Events
| Name | Type | Description |
|---|---|---|
cardMove | card: kor.ui.BoardCardfrom: stringto: string | A card moved. Its column has already been updated |
cardPress | card: kor.ui.BoardCard | A card was opened |
BoardColumn
A column on a work board.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
key | string | Column key | |
title | string | Title | |
limit | int | 0 | Work limit. Zero means unlimited |
state | string | none | Header status |
BoardCard
A work card on a board.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
key | string | Card key | |
column | string | Key of the containing column | |
title | string | Title | |
text | string | Description | |
meta | string | Text at the bottom left | |
person | string | Assignee | |
tag | string | Tag | |
state | string | none | Status |