new ludo.calendar.TimePicker(config)
Time Picker module
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
object | Config object Properties
|
- Source:
Fires:
- ludo.calendar.TimePicker#mode Fired when switching from hours to minutes.event: Argument: {String} "hours" or "minutes"
- ludo.calendar.TimePicker#time Fired when either hours or minutes have been changed.
Example:
var t = new ludo.calendar.TimePicker({ layout:{width:500,height:500}, renderTo:document.body, listeners:{ // Listener for the "time" event 'time' : function(hour, minutes, timeAsString){ // timeString in format HH:MM, example: 11:48 console.log(timeAsString); } });
event:
Methods
-
restart()
-
Show hours
- Source: