kor TürkçeGitHub

LeaveBalance

Shows used and remaining leave days.

kor/ui/LeaveBalanceSource

When to use

  • Use it next to a leave request.

Examples

Annual and sick leave

Loading the example

<k:Stack direction="grid" columns="2" gap="14">
	<k:LeaveBalance title="Annual leave" total="20" used="8" planned="3" pending="2" expires="5 days expire on 31 Dec"/>
	<k:LeaveBalance title="Sick leave" icon="stethoscope" total="10" used="1.5"/>
</k:Stack>

API

Properties

NameTypeDefaultDescription
titlestringLeave type
iconstringpalmtreeIcon
totalfloat0Total entitlement in days
usedfloat0Used
plannedfloat0Approved and upcoming
pendingfloat0Waiting for approval
expiresstringExpiry note

Events

NameTypeDescription
pressThe card was pressed

Methods

NameDescription
getRemaining(): numberRemaining days. Negative when exceeded.

Related

ShiftRosterProgress