Skip to content

Commit

Permalink
Scheduler - The CurrentView property doesn't accept custom view names…
Browse files Browse the repository at this point in the history
… (T1256198) (#28447)
  • Loading branch information
tongsonbarbs authored Nov 29, 2024
1 parent 3f4118c commit d4a9b2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/devextreme-angular/src/ui/scheduler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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<ViewType>;
@Output() currentViewChange: EventEmitter<ViewType | string>;

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/ui/scheduler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export interface dxSchedulerOptions extends WidgetOptions<dxScheduler> {
* @fires dxSchedulerOptions.onOptionChanged
* @public
*/
currentView?: ViewType;
currentView?: ViewType | string;
/**
* @docid
* @type_function_param1 info:object
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/ts/dx.all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
*/
Expand Down

0 comments on commit d4a9b2c

Please sign in to comment.