$("#Schedule1").ejSchedule({
width: "100%",
height: "525px",
currentDate: new Date(2017, 5, 4),
appointmentSettings: {
dataSource: dManager,
id: "Id",
subject: "Subject",
startTime: "StartTime",
endTime: "EndTime",
description: "Description",
allDay: "AllDay",
recurrence: "Recurrence",
recurrenceRule: "RecurrenceRule"
},
create: "onCreate"
});
});
function onCreate(args) {
if (ej.isNullOrUndefined(this._alertWindow) && ej.isNullOrUndefined(this._recurEditWindow)) {
this._renderRecurEditWindow();
this._renderAlertWindow();
}
this._alertWindow.ejDialog({ beforeOpen: "onBeforeOpen", close: "onDialogClose" });
this._recurEditWindow.ejDialog({ beforeOpen: "onBeforeOpen", close: "onDialogClose" });
}
function onBeforeOpen(args) {
console.log('dialog open');
}
function onDialogClose(args) {
console.log('dialog close')
} |