DateTimeInput

A date picker, or a time picker with enableTime, or both. Set timeStep (minutes) to offer fixed times, e.g. 30 for a booking. The value is ISO 8601. Bind value with { "@path": "/x" } to read it. Give it a label.

Examples

Loading examples…

Props

PropTypeDescription
checksobject[]Validation rules. The control shows the first failed one
valuestringISO 8601: "YYYY-MM-DD", "HH:MM" or "YYYY-MM-DDTHH:MM". Bind it with { "@path": "/x" }
labelstringThe visible label of the field. Always set it
enableDatebooleanThe user picks a date. Default true unless only enableTime is set
enableTimebooleanThe user picks a time
timeStepintegerMinutes between the times the user can pick, e.g. 15 or 30. Shows the time as a list
weightnumberflex-grow in a Row or Column
minstringThe earliest value, ISO 8601
maxstringThe latest value, ISO 8601
placeholderstring
disabledboolean
requiredboolean
clearableboolean
blockbooleanFull width

Link to DateTimeInput · All standard components

On this page