HexagonJS
Time Picker Changelog
2.1.0
hx.TimePickeroptionsObject
options
dateDate
Added
The date to initialise the time picker with
1.17.0
hx.TimePicker
localeTimePicker
Updated
#468
Updated the locale method to allow per-instance locales and un-deprecated the locale methods
hx.TimePicker
localeString
Updated
#468
Updated the locale method to allow per-instance locales and un-deprecated the locale methods
hx.TimePicker
timezoneTimePicker
Added
#468
Added a method to allow the setting of per-instance timezones
hx.TimePicker
timezoneString
Added
#468
Added a method to allow the setting of per-instance timezones
1.1.0
hx.TimePickerextendsEventEmitter
Updated
#23#24
Time pickers now listen for changes in hx.preferences.locale and hx.preferences.timezone and automatically update
1.0.0
hx.TimePicker
disableTimePicker
Removed
Use disabled(true) instead.
hx.TimePicker
enableTimePicker
Removed
Use disabled(false) instead.
hx.timePickerSelection
Added
Fluid api version of TimePicker
0.15.3
hx.TimePicker
disableTimePicker
Deprecated
Use disabled(true) instead.
hx.TimePicker
enableTimePicker
Deprecated
Use disabled(false) instead.
0.15.2
hx.TimePickerextendsEventEmitter
Bugfix
Disabled text input for touch devices as the input box conflicts with the dropdown for changing the time which isn't very user friendly
hx.TimePicker
disableTimePicker
Deprecated
Use disabled(true) instead.
hx.TimePicker
enableTimePicker
Deprecated
Use disabled(false) instead.
hx.TimePickeroptionsObject
options
disabledBoolean
Added
Added the ability to disable a time picker in the options
hx.TimePicker
disabledTimePicker
Added
Added the ability to disable/enable a time picker
hx.TimePicker
disabledBoolean
Added
Added the ability to get the disabled state of a time picker
0.14.1
Bugfix
Fixed an issue where the events were firing out of order.
0.14.0
hx.TimePicker
Removed
Use hx.TimePicker(selector, options) instead.
hx.TimePicker
addHoursTimePicker
Removed
Use tp.hour(tp.hour() + hours) instead
hx.TimePicker
addMinutesTimePicker
Removed
Use tp.minute(tp.minute() + minutes) instead
hx.TimePicker
addSecondsTimePicker
Removed
Use tp.second(tp.second() + seconds) instead
hx.TimePicker
hourTimePicker
Removed
The suppressCallback parameter has been deprecated. Use timepicker.suppressed(eventName, suppress) to suppress events. This is part of the Event Emitter api
hx.TimePicker
minuteTimePicker
Removed
The suppressCallback parameter has been deprecated. Use timepicker.suppressed(eventName, suppress) to suppress events. This is part of the Event Emitter api
hx.TimePicker
secondTimePicker
Removed
The suppressCallback parameter has been deprecated. Use timepicker.suppressed(eventName, suppress) to suppress events. This is part of the Event Emitter api
hx.TimePicker
updateTimePicker
Removed
Use locale(locale) instead.
hx.TimePicker
dateTimePicker
Removed
The suppressCallback parameter has been deprecated. Use timepicker.suppressed(eventName, suppress) to suppress events. This is part of the Event Emitter api
0.13.0
hx.TimePicker
Deprecated
Use hx.TimePicker(selector, options) instead.
hx.TimePicker
addHoursTimePicker
Deprecated
Use tp.hour(tp.hour() + hours) instead
hx.TimePicker
addMinutesTimePicker
Deprecated
Use tp.minute(tp.minute() + minutes) instead
hx.TimePicker
addSecondsTimePicker
Deprecated
Use tp.second(tp.second() + seconds) instead
hx.TimePicker
hourTimePicker
Deprecated
The suppressCallback parameter has been deprecated. Use timepicker.suppressed(eventName, suppress) to suppress events. This is part of the Event Emitter api
hx.TimePicker
minuteTimePicker
Deprecated
The suppressCallback parameter has been deprecated. Use timepicker.suppressed(eventName, suppress) to suppress events. This is part of the Event Emitter api
hx.TimePicker
secondTimePicker
Deprecated
The suppressCallback parameter has been deprecated. Use timepicker.suppressed(eventName, suppress) to suppress events. This is part of the Event Emitter api
hx.TimePicker
updateTimePicker
Deprecated
Use locale(locale) instead.
hx.TimePicker
dateTimePicker
Deprecated
The suppressCallback parameter has been deprecated. Use timepicker.suppressed(eventName, suppress) to suppress events. This is part of the Event Emitter api
hx.TimePicker
Added
Creates a timepicker with the current time
hx.TimePicker
localeTimePicker
Added
A function for updating the locale used in the time picker.
By default, the locale used is 'en-gb' which cannot be changed unless moment.js with the relevant locales is present on the page.
timepicker.locale('pl') // sets the timepicker's locale to Poland
hx.TimePicker
localeString
Added
A method for getting the currently set locale
Gets the locale for this time picker. If one has not been set, falls back to
hx.TimePicker
dateTimePicker
Added
Sets the currently selected date.
hx.TimePicker
hourTimePicker
Added
Sets the currently selected hour.
hx.TimePicker
minuteTimePicker
Added
Sets the currently selected minute.
hx.TimePicker
secondTimePicker
Added
Sets the currently selected second.
0.12.6
hx.TimePickerextendsEventEmitter
Updated
Added a delay to the time picker input to make it easier to enter a time manually.
0.12.5
hx.TimePicker
dateTimePicker
Removed
The setTime parameter has been changed to retainTime and the behaviour inverted. Passing false will set the entire date object whereas previously false would only set the days/months/years (ignoring the hours/minutes/seconds). Use date(date, retainTime, suppressCallback) instead.
hx.TimePicker
dateTimePicker
Added
Sets the currently selected date.
0.12.0
hx.TimePicker
setDate
Removed
hx.TimePicker
setHour
Removed
hx.TimePicker
setMinute
Removed
hx.TimePicker
setSecond
Removed
hx.TimePicker
getDateDate
Removed
hx.TimePicker
getHourNumber
Removed
hx.TimePicker
getMinuteNumber
Removed
hx.TimePicker
getSecondNumber
Removed
hx.TimePicker
disableTimePicker
Added
A method for disabling a time picker so the user can't enter values.
hx.TimePicker
enableTimePicker
Added
A method for enabling a time picker so the user can enter values.
0.11.0
hx.TimePickerextendsEventEmitter
Updated
All instances of supressCallback have been converted to suppressCallback.
hx.TimePicker
setDate
Deprecated
Use date(date, setTime, suppressCallback) instead.
hx.TimePicker
setHour
Deprecated
Use hour(hour, suppressCallback) instead.
hx.TimePicker
setMinute
Deprecated
Use minute(minute, suppressCallback) instead.
hx.TimePicker
setSecond
Deprecated
Use second(second, suppressCallback) instead.
hx.TimePicker
getDateDate
Deprecated
Use date() instead.
hx.TimePicker
getHourNumber
Deprecated
Use hour() instead.
hx.TimePicker
getMinuteNumber
Deprecated
Use minute() instead.
hx.TimePicker
getSecondNumber
Deprecated
Use second() instead.
hx.TimePicker
updateTimePicker
Removed
hx.TimePicker
dateDate
Added
A function to return the currently selected date.
hx.TimePicker
dateTimePicker
Added
Sets the currently selected date.
hx.TimePicker
hourNumber
Added
A function to return the currently selected hour.
hx.TimePicker
hourTimePicker
Added
Sets the currently selected hour.
hx.TimePicker
minuteNumber
Added
A function to return the currently selected minute.
hx.TimePicker
minuteTimePicker
Added
Sets the currently selected minute.
hx.TimePicker
secondNumber
Added
A function to return the currently selected second.
hx.TimePicker
secondTimePicker
Added
Sets the currently selected second.
hx.TimePicker
updateTimePicker
Added
A function for updating the display of the TimePicker when moment.js is present on the page.
The TimePicker now looks for moment.js on the page and shows a localised TimePicker based on moment's current locale setting.
To update the locale setting, a locale can either be passed in or the function can be called with no arguments to pick up the currently set moment.locale .
TimePicker.update('pl') // sets the TimePicker's locale to Poland without affecting the rest of the page.
moment.locale('pl') // sets the page locale to Poland
TimePicker.update() // refreshes the display of the selected TimePicker using moment.locale() of 'pl'