HourMinChooser

src/datechooser.js

Hour and Minute chooser using sliders.

new HourMinChooser(div: any, time: moment, updateCallback: function (time: moment): void)
Parameters
div (any)
time (moment)
updateCallback (function (time: moment): void)
Instance Members
div
time
updateCallback
hourMinRegEx
myOnClick
hourMinField
popupDiv
hourDiv
hourSlider
minuteDiv
minuteSlider
updateTime(newTime)
timeModified()
showHide()
hide()

DateTimeChooser

src/datechooser.js

Date and Time chooser using pikaday for the date and the above HourMinChooser for the hour and minute of time.

new DateTimeChooser(div: any, label: string, initialTime: moment, updateCallback: function (time: moment): void)
Parameters
div (any)
label (string)
initialTime (moment)
updateCallback (function (time: moment): void)
Instance Members
div
time
updateCallback
label
dateField
picker
updateTime(newTime)
timeModified()
getTime()

TimeRangeChooser

src/datechooser.js

Combination of two DateTimeChoosers to specify a start and end time.

new TimeRangeChooser(div: any, callbackFunction: function (timerange: StartEndDuration): void)
Parameters
div (any)
callbackFunction (function (timerange: StartEndDuration): void)
Instance Members
div
callbackFunction
duration
startChooser
endChooser
getTimeRange()

CSS for the parts of HourMin, DateTime and TimeRange choosers that are not using pikaday.

chooser_css

CSS for the pikaday chooser.

pikaday_css