How can i add a button in left column to toggle visibility of tasks on timeline?
eg. TASK NAME / DURATION / VISIBILITY (if click here, disable task on timeline… )
its possible? has anyone done something like that?
thank everyone
i trayed add a column with this:
{name:“custom_field”, label:“Visibility”, template:function(task){
return " show/hide"}}
and a function:
function toggleVisibility(taskID) {
$('.gantt_task_row[task_id='+taskID+']').toggleClass('disabled');
}
and via CSS hide or customize timeline elements.
but i have 2 problems… class is change only after twice clicks … e other problem is, when i select other task, i lost any changes i made via functions, css, etc…
what i need to do to avoid this problem? dont clear when i click in other task… or, save this new atributes in gantt.
thank all