Hide not work time in time select in lightbox

Hello, How I can hide not work times on time select? When create task.

I have options:

gantt.config.work_time = true; gantt.setWorkTime({ hours:[9,18] }); gantt.config.skip_off_time = true; gantt.config.correct_work_time = true;

But this, only skip off time on the scale. But how skip off time on time select when create task?

Hello,
There is a way to adjust the time after you selected it, but gantt doesn’t have an option to do hide months, days and hours in the lightbox.
You can use built-in events for the lightbox and the DOM element for the select options and hide them manually. We don’t have a ready solution, though I have an idea how it might look like:
snippet.dhtmlx.com/a236d08d0

You can try to use these event handlers and commands in addition to what you find in the snippet:

[code]gantt.attachEvent(“onBeforeLightbox”, function(id) {
gantt.resetLightbox(); // clear all changes, new lightbox element will be generated after that
return true;
});

gantt.attachEvent(“onLightbox”, function(id) {
var timeControl = gantt.getLightboxSection(‘time’);
var domElement = timeControl.node;
/// do something with time control domElement
return true;
});
[/code]
And these links may help you to create your own solution:
docs.dhtmlx.com/gantt/api__gant … event.html
docs.dhtmlx.com/gantt/api__gant … htbox.html
docs.dhtmlx.com/gantt/api__gant … htbox.html
docs.dhtmlx.com/gantt/api__gant … ction.html