Skip to content

Commit c9d8617

Browse files
Rename align to alignInView scrollTo Api
1 parent 5edc542 commit c9d8617

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,9 +2034,9 @@ class Scheduler extends SchedulerOptionsBaseWidget {
20342034
if (this._isScrollOptionsObject(groupValuesOrOptions)) {
20352035
groupValues = groupValuesOrOptions.group;
20362036
allDayValue = groupValuesOrOptions.allDay;
2037-
align = groupValuesOrOptions.align ?? 'center';
2037+
align = groupValuesOrOptions.alignInView ?? 'center';
20382038
} else {
2039-
errors.log('W0002', 'dxScheduler', 'scrollTo', '26.1', 'Use an object with "group", "allDay", and "align" properties instead of separate parameters.');
2039+
errors.log('W0002', 'dxScheduler', 'scrollTo', '26.1', 'Use an object with "group", "allDay" and "alignInView" properties instead of separate parameters.');
20402040
groupValues = groupValuesOrOptions;
20412041
allDayValue = allDay;
20422042
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export interface CompactAppointmentOptions {
274274
export interface ScrollToOptions {
275275
group?: RawGroupValues | GroupValues;
276276
allDay?: boolean | undefined;
277-
align?: 'start' | 'center';
277+
alignInView?: 'start' | 'center';
278278
}
279279

280280
export type ScrollToGroupValuesOrOptions =

packages/devextreme/js/ui/scheduler.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ export default class dxScheduler extends Widget<dxSchedulerOptions> {
13201320
scrollTo(date: Date, options?: {
13211321
group?: object;
13221322
allDay?: boolean;
1323-
align?: 'start' | 'center';
1323+
alignInView?: 'start' | 'center';
13241324
}): void;
13251325
/**
13261326
* @docid

packages/devextreme/ts/dx.all.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25857,7 +25857,7 @@ declare module DevExpress.ui {
2585725857
options?: {
2585825858
group?: object;
2585925859
allDay?: boolean;
25860-
align?: 'start' | 'center';
25860+
alignInView?: 'start' | 'center';
2586125861
}
2586225862
): void;
2586325863
/**

0 commit comments

Comments
 (0)