Scrollbar Sync/Done
parent
38cb5c914b
commit
e85b37308f
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
<ejs-gantt *ngIf="renderTimeGantt" #ganttObject id="ganttDefaultSum"
|
<ejs-gantt *ngIf="renderTimeGantt" #ganttObj id="ganttDefaultSum"
|
||||||
[dataSource]="data"
|
[dataSource]="data"
|
||||||
[includeWeekend]="true"
|
[includeWeekend]="true"
|
||||||
[resources]="resources"
|
[resources]="resources"
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ export class PlanTimeBarComponent implements OnInit {
|
||||||
@Input() filters: Array<any> = [];
|
@Input() filters: Array<any> = [];
|
||||||
|
|
||||||
@ViewChild('ganttObjectSum')
|
@ViewChild('ganttObjectSum')
|
||||||
public ganttObjectSum!: GanttComponent;
|
public ganttObj: GanttComponent;
|
||||||
public data : any[] = [];
|
public data : any[] = [];
|
||||||
public resources: any[] = [];
|
public resources: any[] = [];
|
||||||
public userSupportGroup: string;
|
public userSupportGroup: string;
|
||||||
|
|
@ -51,6 +51,7 @@ export class PlanTimeBarComponent implements OnInit {
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
//this.renderTimeGantt = false;
|
//this.renderTimeGantt = false;
|
||||||
|
|
||||||
this.splitterSettings = this.inputData[0];
|
this.splitterSettings = this.inputData[0];
|
||||||
this.projectStartDate = this.inputData[1];
|
this.projectStartDate = this.inputData[1];
|
||||||
this.projectEndDate = this.inputData[2];
|
this.projectEndDate = this.inputData[2];
|
||||||
|
|
@ -175,6 +176,7 @@ getCalendarWeeks(startDate: Date, endDate: Date): { start: Date, end: Date }[] {
|
||||||
|
|
||||||
public queryTaskbarInfo(args: any) {
|
public queryTaskbarInfo(args: any) {
|
||||||
// console.log(args);
|
// console.log(args);
|
||||||
|
//console.log(this.ganttObj);
|
||||||
args.taskbarBgColor = "transparent";
|
args.taskbarBgColor = "transparent";
|
||||||
args.taskbarBorderColor = "transparent";
|
args.taskbarBorderColor = "transparent";
|
||||||
args.taskLabelColor = "black";
|
args.taskLabelColor = "black";
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@
|
||||||
[selectionSettings]="selectionSettings"
|
[selectionSettings]="selectionSettings"
|
||||||
[tooltipSettings]="tooltipSettings"
|
[tooltipSettings]="tooltipSettings"
|
||||||
[splitterSettings] = "splitterSettings"
|
[splitterSettings] = "splitterSettings"
|
||||||
|
(actionComplete)="actionComplete($event)"
|
||||||
gridLines="Both"
|
gridLines="Both"
|
||||||
|
|
||||||
(actionBegin)="actionBegin($event)"
|
(actionBegin)="actionBegin($event)"
|
||||||
|
|
|
||||||
|
|
@ -406,6 +406,15 @@ public logg(args){
|
||||||
this.refreshData();
|
this.refreshData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public actionComplete(args: any){
|
||||||
|
if (args.action === 'HorizontalScroll') {
|
||||||
|
let elem = document.querySelector(
|
||||||
|
'#'+'ganttDefaultSum'+ 'GanttChart > div.e-chart-root-container > div'
|
||||||
|
);
|
||||||
|
elem.scrollLeft = args.scrollLeft;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public changeScalar(){
|
public changeScalar(){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue