Fork me on GitHub

Date

Date input.

date = factory('#field:datetime', props={
    'label': 'Enter date or use date picker',
    'required': 'Date Field is required',
    'locale': 'de',
    'datepicker': True,
})

Time

Time input.

time = factory('#field:time', props={
    'label': 'Select time',
    'required': 'Time Field is required',
    'timepicker': True,
})

Datetime

Date and time input.

datetime = factory('#field:datetime', props={
    'label': 'Enter date and time',
    'required': 'Datetime Field is required',
    'locale': 'de',
    'datepicker': True,
    'time': True,
    'timepicker': True,
})