Skip to content

Commit 06651cd

Browse files
authored
Scheduler - The CurrentView property doesn't accept custom view names (T1256198) (#28443)
1 parent 8d6b577 commit 06651cd

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

apps/demos/Demos/Scheduler/GroupOrientation/React/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const App = () => (
1212
timeZone="America/Los_Angeles"
1313
dataSource={data}
1414
groups={groups}
15-
defaultCurrentView={'Vertical Grouping' as any}
15+
defaultCurrentView={'Vertical Grouping'}
1616
defaultCurrentDate={currentDate}
1717
startDayHour={9}
1818
endDayHour={16}

apps/demos/Demos/Scheduler/LimitAppointmentCountPerCell/React/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const App = () => (
2323
timeZone="America/Los_Angeles"
2424
dataSource={data}
2525
views={views}
26-
defaultCurrentView={'Auto Mode' as any}
26+
defaultCurrentView={'Auto Mode'}
2727
defaultCurrentDate={currentDate}
2828
height={730}
2929
>

apps/demos/Demos/Scheduler/VirtualScrolling/React/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const App = () => (
1818
<Scheduler
1919
dataSource={appointments}
2020
height={730}
21-
defaultCurrentView={'Timeline' as any}
21+
defaultCurrentView={'Timeline'}
2222
defaultCurrentDate={currentDate}
2323
startDayHour={startDayHour}
2424
endDayHour={endDayHour}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ export class DxSchedulerComponent extends DxComponent implements OnDestroy, OnCh
216216
217217
*/
218218
@Input()
219-
get currentView(): ViewType {
219+
get currentView(): ViewType | string {
220220
return this._getOption('currentView');
221221
}
222-
set currentView(value: ViewType) {
222+
set currentView(value: ViewType | string) {
223223
this._setOption('currentView', value);
224224
}
225225

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

10801080
/**
10811081

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ export interface dxSchedulerOptions extends WidgetOptions<dxScheduler> {
534534
* @fires dxSchedulerOptions.onOptionChanged
535535
* @public
536536
*/
537-
currentView?: ViewType;
537+
currentView?: ViewType | string;
538538
/**
539539
* @docid
540540
* @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
@@ -23931,7 +23931,7 @@ declare module DevExpress.ui {
2393123931
/**
2393223932
* [descr:dxSchedulerOptions.currentView]
2393323933
*/
23934-
currentView?: DevExpress.ui.dxScheduler.ViewType;
23934+
currentView?: DevExpress.ui.dxScheduler.ViewType | string;
2393523935
/**
2393623936
* [descr:dxSchedulerOptions.customizeDateNavigatorText]
2393723937
*/

0 commit comments

Comments
 (0)