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"
|
||||
[includeWeekend]="true"
|
||||
[resources]="resources"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export class PlanTimeBarComponent implements OnInit {
|
|||
@Input() filters: Array<any> = [];
|
||||
|
||||
@ViewChild('ganttObjectSum')
|
||||
public ganttObjectSum!: GanttComponent;
|
||||
public ganttObj: GanttComponent;
|
||||
public data : any[] = [];
|
||||
public resources: any[] = [];
|
||||
public userSupportGroup: string;
|
||||
|
|
@ -51,6 +51,7 @@ export class PlanTimeBarComponent implements OnInit {
|
|||
|
||||
ngOnInit(): void {
|
||||
//this.renderTimeGantt = false;
|
||||
|
||||
this.splitterSettings = this.inputData[0];
|
||||
this.projectStartDate = this.inputData[1];
|
||||
this.projectEndDate = this.inputData[2];
|
||||
|
|
@ -175,6 +176,7 @@ getCalendarWeeks(startDate: Date, endDate: Date): { start: Date, end: Date }[] {
|
|||
|
||||
public queryTaskbarInfo(args: any) {
|
||||
// console.log(args);
|
||||
//console.log(this.ganttObj);
|
||||
args.taskbarBgColor = "transparent";
|
||||
args.taskbarBorderColor = "transparent";
|
||||
args.taskLabelColor = "black";
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@
|
|||
[selectionSettings]="selectionSettings"
|
||||
[tooltipSettings]="tooltipSettings"
|
||||
[splitterSettings] = "splitterSettings"
|
||||
(actionComplete)="actionComplete($event)"
|
||||
gridLines="Both"
|
||||
|
||||
(actionBegin)="actionBegin($event)"
|
||||
|
|
|
|||
|
|
@ -406,6 +406,15 @@ public logg(args){
|
|||
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(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue