Skip to content

Commit f4c7dc5

Browse files
Scheduler - Replace private workspace access in m_scheduler
1 parent 596dc5f commit f4c7dc5

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

packages/devextreme/js/__internal/scheduler/m_scheduler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,12 +1297,12 @@ class Scheduler extends SchedulerOptionsBaseWidget {
12971297
this._workSpace = this._createComponent($workSpace, workSpaceComponent, workSpaceConfig);
12981298

12991299
this._allowDragging() && this._workSpace.initDragBehavior(this, this._all);
1300-
this._workSpace._attachTablesEvents();
1300+
this._workSpace.attachTablesEvents();
13011301
this._workSpace.getWorkArea().append(this._appointments.$element());
13021302

13031303
this._recalculateWorkspace();
13041304
if (currentViewOptions.startDate) {
1305-
this._updateOption('header', 'currentDate', this._workSpace._getHeaderDate());
1305+
this._updateOption('header', 'currentDate', this._workSpace.getHeaderDate());
13061306
}
13071307
}
13081308

packages/devextreme/js/__internal/scheduler/workspaces/m_work_space.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2941,6 +2941,14 @@ class SchedulerWorkSpace extends Widget<WorkspaceOptionsInternal> {
29412941
return this._$headerPanelContainer;
29422942
}
29432943

2944+
attachTablesEvents() {
2945+
this._attachTablesEvents();
2946+
}
2947+
2948+
getHeaderDate() {
2949+
return this._getHeaderDate();
2950+
}
2951+
29442952
updateRender() {
29452953
this.renderer.updateRender();
29462954
}

0 commit comments

Comments
 (0)