Skip to content

Commit d4a9b2c

Browse files
authored
Scheduler - The CurrentView property doesn't accept custom view names (T1256198) (#28447)
1 parent 3f4118c commit d4a9b2c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/devextreme-angular/src/ui/scheduler/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ export class DxSchedulerComponent extends DxComponent implements OnDestroy, OnCh
218218
219219
*/
220220
@Input()
221-
get currentView(): ViewType {
221+
get currentView(): ViewType | string {
222222
return this._getOption('currentView');
223223
}
224-
set currentView(value: ViewType) {
224+
set currentView(value: ViewType | string) {
225225
this._setOption('currentView', value);
226226
}
227227

@@ -1077,7 +1077,7 @@ export class DxSchedulerComponent extends DxComponent implements OnDestroy, OnCh
10771077
* This member supports the internal infrastructure and is not intended to be used directly from your code.
10781078
10791079
*/
1080-
@Output() currentViewChange: EventEmitter<ViewType>;
1080+
@Output() currentViewChange: EventEmitter<ViewType | string>;
10811081

10821082
/**
10831083

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ export interface dxSchedulerOptions extends WidgetOptions<dxScheduler> {
532532
* @fires dxSchedulerOptions.onOptionChanged
533533
* @public
534534
*/
535-
currentView?: ViewType;
535+
currentView?: ViewType | string;
536536
/**
537537
* @docid
538538
* @type_function_param1 info:object

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23863,7 +23863,7 @@ declare module DevExpress.ui {
2386323863
/**
2386423864
* [descr:dxSchedulerOptions.currentView]
2386523865
*/
23866-
currentView?: DevExpress.ui.dxScheduler.ViewType;
23866+
currentView?: DevExpress.ui.dxScheduler.ViewType | string;
2386723867
/**
2386823868
* [descr:dxSchedulerOptions.customizeDateNavigatorText]
2386923869
*/

0 commit comments

Comments
 (0)