Skip to content

Commit 59bcda1

Browse files
refactor(Scheduler): replace underscore-prefixed _createIndicator with createIndicator method
1 parent 0ef53ce commit 59bcda1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,13 @@ class SchedulerTimeline extends SchedulerWorkSpace {
462462
const width = this.getIndicationWidth();
463463

464464
if (this.option('groupOrientation') === 'vertical') {
465-
$indicator = this._createIndicator($container);
465+
$indicator = this.createIndicator($container);
466466
setHeight($indicator, getBoundingRect($container.get(0)).height);
467467
$indicator.css('left', rtlOffset ? rtlOffset - width : width);
468468
} else {
469469
for (let i = 0; i < groupCount; i++) {
470470
const offset = this.isGroupedByDate() ? i * this.getCellWidth() : this._getCellCount() * this.getCellWidth() * i;
471-
$indicator = this._createIndicator($container);
471+
$indicator = this.createIndicator($container);
472472
setHeight($indicator, getBoundingRect($container.get(0)).height);
473473

474474
$indicator.css('left', rtlOffset ? rtlOffset - width - offset : width + offset);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class SchedulerWorkSpaceIndicator extends SchedulerWorkSpace {
6464
const groupedByDate = this.isGroupedByDate();
6565
const repeatCount = groupedByDate ? 1 : groupCount;
6666
for (let i = 0; i < repeatCount; i++) {
67-
const $indicator = this._createIndicator($container);
67+
const $indicator = this.createIndicator($container);
6868

6969
setWidth(
7070
$indicator,
@@ -74,7 +74,7 @@ class SchedulerWorkSpaceIndicator extends SchedulerWorkSpace {
7474
}
7575
}
7676

77-
_createIndicator($container) {
77+
protected createIndicator($container) {
7878
const $indicator = $('<div>').addClass(SCHEDULER_DATE_TIME_INDICATOR_CLASS);
7979
$container.append($indicator);
8080

0 commit comments

Comments
 (0)