Hi All,
Is it possible to add task type in the newly created object when I click plus sign?
See image
Thanks,
Hi All,
Is it possible to add task type in the newly created object when I click plus sign?
See image
Thanks,
Hi,
you can assign the initial values (and a type), in this event
docs.dhtmlx.com/gantt/api__gantt … event.html
That was a fast response.
Ok, I’d use the parent property to get the task type.
How can I set it to the new task?
Hi,
can you please clarify the question? You can simply assign the property to the task object available from the arguments
gantt.attachEvent("onTaskCreated", function(task){
var types = gantt.config.types;
if(task.parent){
var parent = gantt.getTask(task.parent);
if(parent.type == types.project)
task.type = types.task;
else
task.type = types.project;
}else{
task.type = types.project;
}
return true;
});
Hi,
This is ok.
Thanks.
I sent my last reply few weeks ago but logged as today