Updating lightbox properties on the fly


Is there a way to have the lightbox update itself immediately based on changing another setting in the lightbox? For example, I have a checkbox in my lightbox that will ‘lock’ the task (disables changing the time and duration). Currently if the user marks this box, they need to click ‘save’ and then reopen the task to see that it’s disabled. I’d prefer to just disable it at the same time they check the box.

The same goes for duration. Ideally I’d like to have some radio buttons in the lightbox for the end user to chose duration units. Based on the button they select the duration could be minutes/seconds/hours/etc. Is there a way to do this? Like an event to listen for a click or something like that?

there is no built-in way. Probably the most realistic approach is to attach event listeners to the inputs when lightbox is opened, and update the linked controls manually
docs.dhtmlx.com/gantt/api__gantt … event.html
docs.dhtmlx.com/gantt/api__gantt … ction.html