kor TürkçeGitHub

DateField

Accepts a date from a calendar or a typed value.

kor/ui/DateFieldSource

When to use

  • Collect a single day with optional date limits and calendar notes.

Examples

Choose a day

Loading the example

<k:DateField label="Delivery date" value="2026-12-08" change=".onChange"/>

Book a workday

Only weekdays in December are selectable. The calendar marks 15 December with a note.

Loading the example

<k:DateField label="Inspection date" value="2026-12-08" min="2026-12-01" max="2026-12-31" workdays="true" marks="{/marks}" change=".onChange"/>

API

Properties

NameTypeDefaultDescription
valueanynullDate as yyyy-MM-dd or a Date object
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 value is required
enabledbooleantrueWhether the field can be used

Events

NameTypeDescription
changevalue: anyThe date changed

Related

DateRangeFieldSchedule