kor TürkçeGitHub

DateTimeField

Enters a date and a time together.

kor/ui/DateTimeFieldSource

When to use

  • Use it for a precise moment, such as a deadline.

Examples

Deadline

Loading the example

<k:DateTimeField label="Deadline" value="{/due}" defaultTime="17:00"/>

API

Properties

NameTypeDefaultDescription
valueanynullValue as a Date or an ISO 8601 string
labelstringLabel
helpstringHelp text
errorstringError text
minanyEarliest day
maxanyLatest day
stepint30Interval in the time list, in minutes
defaultTimestringTime used when only a day is chosen, HH:mm
requiredbooleanfalseWhether a value is required
enabledbooleantrueWhether the control is enabled

Events

NameTypeDescription
changevalue: anyThe value changed

Related

DateFieldTimeField