Skip to content

DateTime Component

Travis Tidwell edited this page Jul 5, 2017 · 5 revisions

JSON Schema

The JSON Schema definition for this component is defined as follows.

Core Properties

This component uses the core properties defined within the Common Parameters section.

Specific Properties

Property Description Value Required Default
format The date format that is used for the presentation of the date captured. Any valid DateTime string true yyyy-MM-dd HH:mm a
enableDate If the date picker should be enabled. Boolean false true
enableTime If the time picker should be enabled. Boolean false true
defaultDate The default date value DateTime string, or a Moment declaration. false
datepickerMode The initial mode of the date picker when it is opened One of day, year, week, month false day
datePicker The date picker configurations. See below. DatePicker Configuration (see below) true see below
timePicker The time picker configurations. See below. TimePicker Configuration (see below) true see below

DatePicker Configuration

Property Description Value Required Default
showWeeks If the date picker should show the weeks interface boolean false true
startingDay The day which is the start of the week, where Sunday is 0. integer false 0
minMode The minimum mode this date picker can be within One of day, year, week, month true day
maxMode The maximum mode this date picker can be within One of day, year, week, month true year
yearRows The amount of rows that are shown within the year interface integer false 4
yearColumns The amount of columns that are shown within the year interface integer false 5
minDate The minimum date that can be set within the date picker. Any DateTime false null
maxDate The maximum date that can be set within the date picker. Any DateTime false null

TimePicker Configuration

Property Description Value Required Default
hourStep The amount of hours to step when the up or down button is pressed. integer true 1
minuteStep The amount of minutes to step when the up or down button is pressed. integer true 1
showMeridian To show the am or pm for the time. boolean false true
readonlyInput If the time input should be readonly boolean false false
mousewheel To allow the mousewheel when changing the time. boolean false true
arrowkeys To allow the arrow keys when changing the time. boolean false true
Clone this wiki locally