Hello,
In my appointment window I don't want user to select the date, only the hour. So, I did this on the StartTime property:
var startElement = args.element.querySelector('#StartTime');
if (!startElement.classList.contains('e-datetimepicker')) {
new ej.calendars.DateTimePicker({
strictMode: true,
value: new Date(startElement.value) || new Date(),
format: 'HH:mm',
change: function () {
if (typeof (document.getElementById("StartTime_Error")) !== 'undefined') {
if (document.getElementById("StartTime_Error")) {
document.getElementById("StartTime_Error").style.display = "none";
}
}
}
}, startElement);
}
But the calendar icon still appears on the DateTimePicker. Is it possible to remove it?
Thank you very much.