Options
The DateTime component can be initialised and used on input elements separately from any DataTables usage if you wish to use it else where on your site. It provides a range of options that can be used to configure the control that it creates, from changing the date format, to including time components. The list below shows all available options - click through to each for full details.
Options for DateTime are set using the object given as the second parameter to the constructor:
new DataTable.DateTime('#myInput', {
// ... options
});
| Name | Summary | Library | Group |
|---|---|---|---|
Makes the date picker always display. | |||
Container for navigation buttons | |||
Enable button to clear the value | |||
Enable button move the current value into view | |||
Enable button move "today" into view | |||
Specify days that cannot be selected. | |||
Change which day of the week is first on the calendar. | |||
The format of the date data. | |||
Sets which hours are selectable. | |||
DateTime language options. | |||
The strings appended to hours to distinguish between am and pm. | |||
Clear button text value | |||
Label for the hours selection. | |||
Label for the minutes selection. | |||
Text used to indicate the months available for selection. | |||
String to use in the next button. | |||
String to use in the previous button. | |||
Label for the seconds selection. | |||
Selected button text value | |||
Today button text value | |||
String to use if a value is unknown. | |||
Text used to indicate the days of the week. | |||
The locale that DateTime should use. | |||
Set the maximum date that can be selected and displayed. | |||
Set the minimum date that can be selected and displayed. | |||
Sets which minutes are selectable. | |||
Function that is called whenever the value selected for DateTime changes. | |||
Sets which seconds are selectable. | |||
Whether the week number should be shown. | |||
The range of years provided for selection. |