Added task style for collated child task

This commit is contained in:
Ray 2024-08-15 12:56:06 +01:00
parent 4fe9947552
commit 62da88656b
2 changed files with 20 additions and 0 deletions

View File

@ -71,6 +71,12 @@ textarea {
<div class="column right">
<div style="margin-left: 10px;">
<p><b>Demo</b></p>
<p>
<button onclick="ClearAll()">Clear</button>
<button onclick="LoadProjectRand()">Load Project</button>
</p>
<p><b>Project (Engine)</b></p>
<p>
<button onclick="Clear()">Clear</button>
@ -254,6 +260,13 @@ textarea {
window.projectPlanner1.Load(taskData);
}
function ClearAll()
{
window.project1.Clear();
window.ganttChart1.Clear();
window.projectPlanner1.Clear();
}
</script>
</body>
</html>

View File

@ -56,6 +56,11 @@ class GanttChart {
BorderColour: "#555555",
FillColour: "#9CC2E6"
},
ChildTask: {
Height: 14,
BorderColour: "#555555",
FillColour: "#FFF5C1"
},
CollatedTask: {
Height: 6,
BorderColour: "#555555",
@ -291,6 +296,8 @@ class GanttChart {
if (a.Tasks[i].IsCollated == true) {
style = a.Options.Row.CollatedTask;
} else if (a.Tasks[i].CollatedTaskID != null) {
style = a.Options.Row.ChildTask;
} else if (a.Tasks[i].PredecessorTaskNo == null) {
style = a.Options.Row.OrphanTask;
}