Hi,
Is it possible to filter lightbox types dropdown based on the selected task type?
E.g. when i click project row, it will only show types specific to project.
As what i have read, we can delete types but it is no longer available.
Thanks,
Hi,
Is it possible to filter lightbox types dropdown based on the selected task type?
E.g. when i click project row, it will only show types specific to project.
As what i have read, we can delete types but it is no longer available.
Thanks,
Hi,
typeselector can have a ‘filter’ function, which allows show only needed ones:gantt.config.lightbox.project_sections = [
{name: "description", height: 70, map_to: "text", type: "textarea", focus: true},
{name: "type", type: "typeselect", map_to: "type", filter:function(typeName, typeId){
if(typeId == gantt.config.types.task)//not show 'Task' type in projects type selector
return false;
return true;
}
},
{name: "time", height: 72, type: "duration", readonly:true, map_to: "auto"}
];
docs.dhtmlx.com/gantt/desktop__typeselect.html
Hi,
I can already filter the dropdowns.
It’s working. Thanks!