Skip to content

Commit 48ec15e

Browse files
fix TS in Scheduler set Vue demos
+ formatting
1 parent 3e91d32 commit 48ec15e

File tree

2 files changed

+5
-6
lines changed
  • apps/demos/Demos

2 files changed

+5
-6
lines changed

apps/demos/Demos/Pagination/Overview/Vue/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ import { computed, ref } from 'vue';
5050
import DxPagination from 'devextreme-vue/pagination';
5151
import { 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);
5757
const pageSizes = [4, 6];
5858
const showInfo = true;
5959
const showPageSizeSelector = true;

apps/demos/Demos/Scheduler/CellTemplates/Vue/App.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,12 @@ function onContentReady(e: DxSchedulerTypes.ContentReadyEvent) {
8585
}
8686
8787
function 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
}
9695
function onAppointmentAdding(e: DxSchedulerTypes.AppointmentAddingEvent) {
9796
const isValidAppointment = Utils.isValidAppointment(e.component, e.appointmentData);

0 commit comments

Comments
 (0)