Here is the answer for those who are still looking for this:
You need to somehow trigger these events, for example: let's say that you put two href tags, here is the compatible code:
To expand all nodes:
$('#expandAllTasks').on('click', function(e) { e.preventDefault(); $('.gantt_treetable').treetable('expandAll'); });
To collapse all nodes:
$('#collapseAllTasks').on('click', function(e) { e.preventDefault(); $('.gantt_treetable').treetable('collapseAll'); });
Hope this helps someone :)
source share