data
attribute e.g. $('#datetimepicker').data("DateTimePicker").FUNCTION()
###destroy()
Destroys the widget and removes all attached event listeners
Shows or hides the widget
dp.hide
- if the widget is hidden after the toggle call
dp.show
- if the widget is show after the toggle call
dp.change
- if the widget is opened for the first time and the input element is empty and options.useCurrent != false
Shows the widget
dp.show
- if the widget was hidden before that call
dp.change
- if the widget is opened for the first time and the useCurrent is set to true or to a granularity value and the input element the component is attached to has an empty value
Hides the widget
dp.hide
- if the widget was visible before that callDisables the input element, the component is attached to, by adding a disabled="true"
attribute to it. If the widget was visible before that call it is hidden.
dp.hide
- if the widget was visible before that callEnables the input element, the component is attached to, by removing disabled
attribute from it.
Clears the datepicker by setting the value to null
4.14.30 Issue #872
Returns a moment
variable with the currently set options.viewDate
option.
Takes a string, moment or Date
value.
This will change the viewDate
without changing or setting the selected date.