Schedule
Places work on a calendar by resource and highlights overlaps.
When to use
- Plan work across equipment, teams or other resources that can have conflicting assignments.
Examples
Read-only schedule
Loading the example
<k:Schedule label="Inspection plan" start="2026-12-01" today="2026-12-02" days="6" editable="false">
<k:lanes><k:ScheduleLane key="bench" title="Test bench"/></k:lanes>
<k:tasks><k:ScheduleTask key="I-42" lane="bench" title="Final inspection" start="2026-12-02" end="2026-12-04" progress="40"/></k:tasks>
</k:Schedule>Reschedule production
Move WO-82 to Line B to resolve the overlap. End dates are inclusive.
Loading the example
<k:Schedule label="Production plan" start="2026-12-01" today="2026-12-03" days="8" taskChange=".onChange" taskPress=".onOpen">
<k:lanes>
<k:ScheduleLane key="a" title="Line A" text="Assembly" capacity="80"/>
<k:ScheduleLane key="b" title="Line B" text="Assembly" capacity="40"/>
</k:lanes>
<k:tasks>
<k:ScheduleTask key="WO-81" lane="a" title="WO-81" text="Valve assembly" start="2026-12-02" end="2026-12-04" progress="50" state="info"/>
<k:ScheduleTask key="WO-82" lane="a" title="WO-82" text="Pump assembly" start="2026-12-04" end="2026-12-06" state="wait"/>
</k:tasks>
</k:Schedule>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.ProductionPlan", {
onChange(event) {
const task = event.getParameter("task");
Toast.show(task.getTitle(), {
text: event.getParameter("conflict") ? "Overlaps another task" : "Schedule updated"
});
},
onOpen(event) {
Toast.show(event.getParameter("task").getText());
}
}));Keyboard
- ← →
- Move a focused task by one day.
- Shift+← Shift+→
- Move the end date by one day.
- ↑ ↓
- Move to an adjacent lane.
- Enter
- Open the focused task.
API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
start | any | First displayed day as a Date or yyyy-MM-dd | |
days | int | 28 | Number of days shown |
today | any | Reference date for today. Defaults to the system date | |
dayWidth | int | 44 | Width of one day in pixels |
editable | boolean | true | Whether tasks can be edited |
label | string | Accessible name |
Aggregations
| Name | Type | Description |
|---|---|---|
lanes | ScheduleLane[] | Resource lanes |
tasks | ScheduleTask[] | Scheduled tasks |
Events
| Name | Type | Description |
|---|---|---|
taskChange | task: kor.ui.ScheduleTaskconflict: boolean | A task changed. Its start, end and lane have already been updated |
taskPress | task: kor.ui.ScheduleTask | A task was opened |
ScheduleLane
A resource lane on the schedule.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
key | string | Lane key | |
title | string | Title | |
text | string | Secondary text | |
capacity | float | -1 | Utilization percentage |
ScheduleTask
A task placed on a resource schedule.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
key | string | Task key | |
lane | string | Key of the assigned lane | |
title | string | Title | |
text | string | Secondary text | |
start | any | Start as a Date or yyyy-MM-dd | |
end | any | Inclusive end date | |
progress | float | 0 | Completion as a percentage |
state | string | info | success, wait, danger, info or none |