I only need time picker part for time input, is there any option can hide all others part (heading, days etc.)? Many thanks
Hello
There is no such feature, but you can use 2 combos: with hours ans minutes with autocomplite mode
You can easily hide days in calendar and show only time .My calendar was attached to a form but you can use on any calendar. The addZero function was use only for beautify
function addZero(i) {
if (i < 10) {
i = "0" + i;
}
return i;
}
var cal=myForm.getCalendar('time');
cal.showTime();
cal.setDateFormat('%H:%i');
cal.attachEvent("onShow", function(){
this.contDates.style.display="none";
this.contDays.style.display="none";
this.contMonth.style.display="none";
});
cal.attachEvent("onTimeChange", function(d){
this.i[this._activeInp].input.value=addZero(d.getHours())+":"+addZero(d.getMinutes());
});