File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Scheduler/CellTemplates/Vue Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ import { computed, ref } from 'vue';
5050import DxPagination from ' devextreme-vue/pagination' ;
5151import { employees } from ' ./data.ts' ;
5252
53- const getPageEmployees = (pageIndex : number , pageSize : number ) => {
54- return employees . slice (( pageIndex - 1 ) * pageSize , pageIndex * pageSize );
55- }
56-
53+ const getPageEmployees = (
54+ pageIndex : number ,
55+ pageSize : number
56+ ) => employees . slice (( pageIndex - 1 ) * pageSize , pageIndex * pageSize );
5757const pageSizes = [4 , 6 ];
5858const showInfo = true ;
5959const showPageSizeSelector = true ;
Original file line number Diff line number Diff line change @@ -85,13 +85,12 @@ function onContentReady(e: DxSchedulerTypes.ContentReadyEvent) {
8585}
8686
8787function onAppointmentFormOpening(e : DxSchedulerTypes .AppointmentFormOpeningEvent ) {
88- if (e .appointmentData ?.startDate
88+ if (e .appointmentData ?.startDate
8989 && ! Utils .isValidAppointmentDate (new Date (e .appointmentData .startDate ))) {
9090 e .cancel = true ;
9191 notifyDisableDate ();
9292 applyDisableDatesToDateEditors (e .form );
9393 }
94-
9594}
9695function onAppointmentAdding(e : DxSchedulerTypes .AppointmentAddingEvent ) {
9796 const isValidAppointment = Utils .isValidAppointment (e .component , e .appointmentData );
You can’t perform that action at this time.
0 commit comments