Date Picker

Example

API

Name Type Default Description
dateTime string moment().format(‘x’) Represents the inital dateTime, this string is then parsed by moment.js
onChange function () => {} Callback trigger when the date changes.
onBlur function () => {} Callback trigger when the date field blurs.
onEnterKeyDown function () => {} Callback trigger when the Enter key is pressed.
defaultText string undefined The placeholder text for the input field. When no defaultText is given, the input field displays the value of the dateTime in DD/MM/YYYY format.
name string undefined Sets the name of the input element.
tabIndex string undefined Sets the tabIndex of the input element.
inputProps object undefined Defines additional attributes for the input element of the component.

Used by

Team
Titan