Is there anyway to just have the start and end date without hours and minutes in the lightbox. Can the hours and minutes just be defaulted to 00:00 and 23:59 or a similar solution?
Hi,
you can remove hour selector using ‘time_format’ setting of the time control
docs.dhtmlx.com/scheduler/time.h … cselectors
As for initial values for hours/minutes, try setting them using onEventSave event:
docs.dhtmlx.com/scheduler/api__s … event.html
I tried that but kept getting the following error when the lightbox opens.
Uncaught TypeError: Cannot read property ‘length’ of undefined
dhtmlxscheduler.js:4841
My code looks like this:
time_format:["%d", "%m", "%Y"]
It seems that the scheduler doesn’t like it when you don’t specify hours and minutes. I have found a work around by adding the following config option which just sets hours/mins to 00:00 and isn’t changeable:
scheduler.config.time_step = 1440;
Would be great to have a better solution though.
Hello,
seems like time_format config does not allows removing time selector, sorry for the mistake.
You can hide the selectors via js code, similary as described here viewtopic.php?f=6&t=33646&p=105644#p105644
scheduler.config.time_step = 60*24;
scheduler.attachEvent("onBeforeLightbox", function(){
var node = scheduler.formSection("time").node;
var timeInputs = node.getElementsByTagName("select");
timeInputs[0].style.display = 'none';//remove inputs
timeInputs[4].style.display = 'none';//remove inputs
return true;
});