From d4a9b2ce3912df38d1bfd01497048dc660a602b5 Mon Sep 17 00:00:00 2001 From: Joshua Barbosa <44610149+tongsonbarbs@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:15:56 +0800 Subject: [PATCH] Scheduler - The CurrentView property doesn't accept custom view names (T1256198) (#28447) --- packages/devextreme-angular/src/ui/scheduler/index.ts | 6 +++--- packages/devextreme/js/ui/scheduler.d.ts | 2 +- packages/devextreme/ts/dx.all.d.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/devextreme-angular/src/ui/scheduler/index.ts b/packages/devextreme-angular/src/ui/scheduler/index.ts index 2968f4445d24..adacebe9cbea 100644 --- a/packages/devextreme-angular/src/ui/scheduler/index.ts +++ b/packages/devextreme-angular/src/ui/scheduler/index.ts @@ -218,10 +218,10 @@ export class DxSchedulerComponent extends DxComponent implements OnDestroy, OnCh */ @Input() - get currentView(): ViewType { + get currentView(): ViewType | string { return this._getOption('currentView'); } - set currentView(value: ViewType) { + set currentView(value: ViewType | string) { this._setOption('currentView', value); } @@ -1077,7 +1077,7 @@ export class DxSchedulerComponent extends DxComponent implements OnDestroy, OnCh * This member supports the internal infrastructure and is not intended to be used directly from your code. */ - @Output() currentViewChange: EventEmitter; + @Output() currentViewChange: EventEmitter; /** diff --git a/packages/devextreme/js/ui/scheduler.d.ts b/packages/devextreme/js/ui/scheduler.d.ts index be0f726fd50c..9a4479394063 100644 --- a/packages/devextreme/js/ui/scheduler.d.ts +++ b/packages/devextreme/js/ui/scheduler.d.ts @@ -532,7 +532,7 @@ export interface dxSchedulerOptions extends WidgetOptions { * @fires dxSchedulerOptions.onOptionChanged * @public */ - currentView?: ViewType; + currentView?: ViewType | string; /** * @docid * @type_function_param1 info:object diff --git a/packages/devextreme/ts/dx.all.d.ts b/packages/devextreme/ts/dx.all.d.ts index 1212dec44f11..f1ab5a1a8378 100644 --- a/packages/devextreme/ts/dx.all.d.ts +++ b/packages/devextreme/ts/dx.all.d.ts @@ -23863,7 +23863,7 @@ declare module DevExpress.ui { /** * [descr:dxSchedulerOptions.currentView] */ - currentView?: DevExpress.ui.dxScheduler.ViewType; + currentView?: DevExpress.ui.dxScheduler.ViewType | string; /** * [descr:dxSchedulerOptions.customizeDateNavigatorText] */