Hello.
this template : grid_indent Gantt Docs
allow to style the indents on the left of tasks in the grid.
But, it’s triggered for example 4 times for a task that is level 4. And there is no way to identify on which level we are. That means if i want for example to have
indent 1 = blue
indent 2 = red
indent 3 = yellow
indent 4 = green
I can’t without using alternatives methods like :nth-child in CSS.
Could you add a new parameter “level” like this
gantt.templates.grid_indent = function(task, level) {
if (task.id === 1541 && level === 1)
return "<div class='gantt_tree_indent background_blue'></div>";
}
so we’ll be able to return a specific class for a specific task and a specific indent of the task.
Thank you