Hello,
i have a field on lightbox what i need to change on add and edit mode.
On add mode, i need to edit the field.
On edit mode, i need to read only.
It is possible?
Thank you
Hello,
i have a field on lightbox what i need to change on add and edit mode.
On add mode, i need to edit the field.
On edit mode, i need to read only.
It is possible?
Thank you
Hi,
You need to create a variable that will be used to check if it is a newly added event.
Set 1
as the variable value in the onTaskCreated, then check its value in the onBeforeLightbox (here you will set different lightbox settings based on the variable value), and after that set 0
to the variable.
Regarding onBeforeLightbox and various lightbox settings:
call resetLightbox to remove the current configuration of gantt.config.lightbox.sections. Then set new one based on the value of variable
in the onAfterLightbox.
Here is the demo that demonstrates how it might be implemented:
https://snippet.dhtmlx.com/a3e041737 - duration can be edited for new events, and can’t for existing ones.
I got it. Thank you for everything