Hi!
Is it possible to hide/show task links (precedences) on the fly?
Thanks.
Hi!
Is it possible to hide/show task links (precedences) on the fly?
Thanks.
Hello,
currently there is no built-in config. However you can implement such functionality with link_class template. If showing links is disabled, template can return css class that sets display:none to the links.
When you need to change links visibility, you can change flag that responsible for displaying the links and call gantt.render to redraw data
css:
.hidden{
display:none:
}
js:
[code]//add config for showing links
gantt.config.show_links = true;
gantt.templates.link_class = function(link){
if(!gantt.config.show_links){
return ‘hidden’;
}
return ‘’;
};
[/code]
usage:
gantt.config.show_links = true/false;
gantt.render();