kor TürkçeGitHub

ShiftRoster

Plans who works which shift.

kor/ui/ShiftRosterSource

When to use

  • Use it for production, stores and call centers.

Examples

Weekly roster

Loading the example

<k:ShiftRoster start="2026-11-23" days="5" people="Ada Yılmaz,Can Koç,Ece Tan" entries="{path: '/entries', templateShareable: false}" change=".onChange">
	<k:shifts>
		<k:ShiftType key="d" title="Day" short="08–16" icon="sun" tone="4" need="2"/>
		<k:ShiftType key="n" title="Night" short="00–08" icon="moon" tone="3" need="1"/>
	</k:shifts>
	<k:entries><k:ShiftEntry person="{p}" date="{d}" shift="{s}"/></k:entries>
</k:ShiftRoster>

API

Properties

NameTypeDefaultDescription
labelstringAccessible name
startanyFirst day as a Date or yyyy-MM-dd
daysint7Number of days
peoplestring[][]People
readOnlybooleanfalseWhether it is display only

Aggregations

NameTypeDescription
shiftsShiftType[]Shift types
entriesShiftEntry[]Assignments

Events

NameTypeDescription
changeperson: string
date: string
shift: string
A cell changed. An empty shift means off. The application updates the data

ShiftType

A shift type.

Properties

NameTypeDefaultDescription
keystringKey
titlestringName
shortstringShort name in the cell
timestringTime range
iconstringIcon, such as sun, sunset, moon or house
toneint1Color, 1 to 6
needint0People needed. Zero is not checked

ShiftEntry

A shift assignment.

Properties

NameTypeDefaultDescription
personstringPerson
dateanyDay
shiftstringShift key

Related

ScheduleLeaveBalance