Our state of the art Gantt chart


Post by kosmos »

Hello,
What is the best way to style rollup color to be same color as child task?


Post by marcio »

Hey kosmos,

As you'll see in the example that we have in documentation of the feature. You can set a custom cls for the task, and from there, you can customize the background color of the rollup with the following CSS rule (we added a cls child1 in this snippet):

// Task data
{
	id       : 11,
	name     : 'Child 1',
	duration : 1,
	leaf     : true,
	rollup   : true,
	cls      : 'child1'
}

// CSS
.b-task-rollup.child1 {
	background-color: red;
}

Best regards,
Márcio


Post Reply