main
Manuel Tauber 2024-02-09 12:36:39 +01:00
parent ca513c5300
commit d5440216d2
2 changed files with 13 additions and 11 deletions

View File

@ -72,8 +72,8 @@ export class NttGanttComponent implements OnInit {
/**############################### Default Variables /**###############################*/
public range = new FormGroup({
start: new FormControl<Date | null>(new Date('12/01/2022')),
end: new FormControl<Date | null>(new Date('01/31/2024')),
start: new FormControl<Date | null>(new Date('12/01/2023')),
end: new FormControl<Date | null>(new Date('01/31/2025')),
});
public data: any[] = [];
@ -82,8 +82,8 @@ export class NttGanttComponent implements OnInit {
public userSupportGroup: string;
public taskSettings: object = {};
public labelSettings: object = {};
public projectStartDate: Date = new Date('12/01/2022');
public projectEndDate: Date = new Date('01/31/2024');
public projectStartDate: Date = new Date('12/01/2023');
public projectEndDate: Date = new Date('01/31/2025');
public resourceFields: object ={};
public editSettings: object = {};
public tooltipSettings: object ={};
@ -770,14 +770,16 @@ export class NttGanttComponent implements OnInit {
*/
public queryTaskbarInfo(args: any) {
if (args.taskbarType == 'Milestone')
{
args.taskbarElement.children[1].classList.add('e-gantt-milestone-border');
}
if(args.data.taskData.isRes == false){
if(args.data.taskData.TaskID.includes("D2")){
args.milestoneBorder = "black";
//args.milestoneBorder = "black";
if (args.taskbarType == 'Milestone')
{
args.taskbarElement.children[1].classList.add('e-gantt-milestone-border');
}
//console.log(args.taskbarElement);
if (args.data.taskData.resources[0].state == 0 ) {
args.milestoneColor = "#f83200";

View File

@ -18,12 +18,12 @@
</html>
<style>
.e-selectionbackground {
/* .e-selectionbackground {
background-color: #E0E0E0 !important;
}
.e-gantt .e-gantt-chart .e-active {
background-color: #E0E0E0 !important;
}
} */
/* .e-gantt-milestone-border {
border: 2px solid red !important;