DateTimeField
Enters a date and a time together.
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
| Name | Type | Default | Description |
|---|---|---|---|
value | any | null | Value as a Date or an ISO 8601 string |
label | string | Label | |
help | string | Help text | |
error | string | Error text | |
min | any | Earliest day | |
max | any | Latest day | |
step | int | 30 | Interval in the time list, in minutes |
defaultTime | string | Time used when only a day is chosen, HH:mm | |
required | boolean | false | Whether a value is required |
enabled | boolean | true | Whether the control is enabled |
Events
| Name | Type | Description |
|---|---|---|
change | value: any | The value changed |