Our state of the art Gantt chart


Post by zhang »

I know how to disable the connection between 2 tasks.
like this:

feature: {
	dependencies: false
}

But this disables the connection to all nodes,
Now I want a feature where subtask nodes can be wired, but after subtask grouping, the group nodes of the current task cannot be wired. Is this possible?


Post by mats »

So you want to prevent the creation of new dependencies? You can solve this with basic CSS and setting some cls like "blockCreate" on the tasks where you want to prevent the dependency circles from showing:

.blockCreate .b-sch-terminal {
    display:none !important;
}

Post by zhang »

Under which property is this CLS property configured?
I didn't add CLS, set it directly:

.b-sch-terminal{
  display: none;
}

Found that all task bars can no longer see circles.. I just want the grouping nodes not to see the circles. Have I made myself clear?


Post by alex.l »

blockCreate is an example of custom CSS class for task you want to apply that restriction.
CSS class may be applied with task data using field https://bryntum.com/docs/gantt/api/Gantt/model/TaskModel#field-cls
or in https://bryntum.com/docs/gantt/api/Gantt/view/GanttBase#config-taskRenderer
See docs for details about params.

All the best,
Alex


Post Reply