These are some of the new features that you can use to customize your InputDate widget.
Features | API | Type | Comments |
---|---|---|---|
Pickers let you choose the style of input to use | pickers option (Note that the list value replaces the comboItems option in previous versions.) |
DatePickersClass | Valid values: calendar, datePicker, list, timePicker Select the style of picker to use. You can also set the height and width of the drop-down using this option. |
Format for editing | dateFormat option | string | Controls the formatting of the date for editing. For example, it is faster to enter a date using numbers than month and day strings. This can be different from the format for displaying the date when it is not in edit mode. |
Format for display | displayFormat option | string | Controls the formatting of the date when it is not in edit mode. So if you want to display numeric dates in edit mode, but still display string dates in display mode, you can use this setting. |
AM / PM Designator | amDesignator and pmDesignator options | string | Sets the string used to indicate hours before noon, and after noon, respectively. |
Display midnight as 0 or 24 | midnightAs0 option | bool | Determines whether to express midnight as 24:00 or 0:00. |
Display hour 12 as 0 or 12 | hour12As0 option | bool | Determines whether to set the range of hours as 1 to 12 or 0 to 11. |
Spin up or down programmatically | spinUp and spinDown methods | Increments or decrements the spinner in the specified field by the specified amount. | |
Text highlighting | highlightText option | string | Sets how to highlight the text in the control when it gets focus. Valid values are "field" or "all." |