Hello.
Is it possible to change the fields / field types of a lightbox depending on the clicked/selected item?
Example: If I have a PROJECT and some (one level) TASKS under the project, can I have a lightbox which will accept project description value to be typed in a text field if a PROJECT is being edited? But if a TASK is being edited, my lightbox would show predefined task options via a drop down field?
//If PROJECT is selected, my lightbox should have below configuration:
gantt.config.lightbox.sections =
[
{name:“description”, height:70, map_to:“text”, type:“textarea”, focus:true},
{name:“time”, height:72, map_to:“auto”, type:“time”}
];
//If a TASK is selected, my lightbox should have below configuration:
gantt.config.lightbox.sections =
[
{name:“description”, height:70, map_to:“text”, type:“select”, focus:true,
options: [
{key:“Task#1”, label: “Task#1”},
{key:“Task#2”, label: “Task#2”},
{key:“Task#3”, label: “Task#3”}
]
},
{name:“time”, height:72, map_to:“auto”, type:“time”}
];