Responsive Flat design jQuery based DateTime Picker for Web & Mobile
No | Attribute | Default Value | Values/Options |
1 | data-field | Default value of mode parameter (required, except in case of HTML5 input types) |
|
2 | data-min | null | |
3 | data-max | null | |
4 | data-format | Default value of dateFormat, timeFormat or dateTimeFormat parameters | dateFormat, timeFormat or dateTimeFormat Options |
5 | data-view | Default value of isPopup parameter |
|
6 | data-startend | No Default Value |
|
7 | data-startendelem | No Default Value |
selector of an datepicker, timepicker or datetimepicker input field to compare date, time or datetime value with For Example, Start DateTime : <input class="startDateTime1" type="text" data-field="datetime" data-startend="start" data-startendelem=".endDateTime1" readonly > End DateTime : <input class="endDateTime1" type="text" data-field="datetime" data-startend="end" data-startendelem=".startDateTime1" readonly > |
Function Name | Description | Parameters | Return Value |
setIsPopup | Set value of isPopup parameter | isPopupVal - Boolean | |
setDateTimeStringInInputField | Set Formatted DateTime String in the Input Field |
|
|
getDateTimeStringInFormat | Get Formatted DateTime String |
|
DateTime String |
setLanguage | Change Language of DateTimePicker instance. | Language Code | DateTimePicker Object |
getDateObjectForInputField | Get Date object for the specified Input Field formatted in Pre-defined or Custom DateTime formats. | Input Element | Javascript Date Object |
No | Function Name | Description | Parameters | ||||||||||||||||||||||||||||||||
1 | init | This function is called on DateTimePicker plugin initialization. |
|
||||||||||||||||||||||||||||||||
2 | addEventHandlers | This function can be used to add External Event Handlers for the DateTimePicker. This function is called on DateTimePicker plugin initialization after default event handlers are added. |
|
||||||||||||||||||||||||||||||||
3 | beforeShow | This function is called before showing DateTimePicker when an event to show DateTimePicker is triggered. |
|
||||||||||||||||||||||||||||||||
4 | afterShow | This function is called after showing DateTimePicker when an event to show DateTimePicker is triggered. |
|
||||||||||||||||||||||||||||||||
5 | beforeHide | This function is called before hiding DateTimePicker when an event to hide DateTimePicker is triggered. |
|
||||||||||||||||||||||||||||||||
6 | afterHide | This function is called after hiding DateTimePicker when an event to hide DateTimePicker is triggered. |
|
||||||||||||||||||||||||||||||||
7 | buttonClicked | This function is called when button on DateTimePicker UI is clicked. ButtonType value can be "SET", "CLEAR", "CLOSE" or "TAB". |
|
||||||||||||||||||||||||||||||||
8 | formatHumanDate | This function can be used to format DateTime string to be displayed in the DateTimePicker Header section. |
|
||||||||||||||||||||||||||||||||
Attributes of "date" parameter passed to formatHumanDate() -
|
|||||||||||||||||||||||||||||||||||
9 | parseDateTimeString | This function can be used to return Date Object created by parsing DateTime string. |
|
||||||||||||||||||||||||||||||||
10 | formatDateTimeString | This function can be used to return a formatted DateTime string created using attributes of DateTime Object. |
|
||||||||||||||||||||||||||||||||
Attributes of DateTime Object parameter of formatDateTimeString() -
|
|||||||||||||||||||||||||||||||||||
11 | settingValueOfElement | This function is called before setting value in the input field. This method is added primarily to make DateTimePicker work with AngularJS. See [Angular Demo](https://github.com/nehakadam/DateTimePicker/blob/master/demo/AngularJS/BasicDatePicker-AngularJS.htm). |
|