kor TürkçeGitHub

DateRangeField

Collects an inclusive range using two calendar months or presets.

kor/ui/DateRangeFieldSource

When to use

  • Set a period for a report or a reservation.

Examples

Choose a date range

Loading the example

<k:DateRangeField label="Report period" start="2026-12-01" end="2026-12-07" change=".onChange"/>

Limit a reservation window

Both boundary days are included. The reservation can only use dates in December 2026.

Loading the example

<k:DateRangeField label="Equipment reservation" start="2026-12-07" end="2026-12-09" presets="false" min="2026-12-01" max="2026-12-31" required="true" change=".onChange"/>

API

Properties

NameTypeDefaultDescription
startanynullStart as yyyy-MM-dd or a Date object
endanynullInclusive end date
presetsbooleantrueWhether to show preset ranges
labelstringField label
placeholderstringPlaceholder
helpstringSupporting text
errorstringValidation message
minanyEarliest selectable day
maxanyLatest selectable day
workdaysbooleanfalseWhether selection excludes weekends
marksobjectMap from dates to notes displayed in the calendar
requiredbooleanfalseWhether a range is required
enabledbooleantrueWhether the field can be used

Events

NameTypeDescription
changestart: any
end: any
The range changed

Related

DateFieldSchedule