Customise time drop down values of lightbox

Hi,

I am using DHTMLX scheduler. Thank you for this nice plugin.

I am facing one problem.

Actually I just want to create a new event on click of another event. For this I have used lightbox with following code.

scheduler.attachEvent(“onClick”, function (event_id, native_event_object){
scheduler.addEvent({
id:id,
text:“new event”,
start_date: scheduler.getEventStartDate(event_id),
end_date: scheduler.getEventEndDate(event_id)
});
scheduler.showLightbox(id);
});

It is perfectly showing date and time of selected event. But I am using this for creating new event so I just want to limit the time period.

Like If a parent event is of 1PM to 2PM. Then my new event time dropdown of lightbox should show me the time period like 01:00, 01:05, 01:10,… up to 2:00 only.

Is there any solution for this?

Thanks in advance.

You can modify

scheduler.config.first_hour
scheduler.config.last_hour

before showing the lightbox, and reset them back to normal values on lightbox closing.