|
actionBegin: function(args: ActionEventArgs) {
// You can get the event detail from the args.
console.log(args.data);
if (args.requestType === "eventCreate") {
// Here you can send your http request on event save action
} else if (args.requestType === "eventChange") {
// Here you can send your http request on event update action
} else if (args.requestType === "eventRemove") {
// Here you can send your http request on event delete action
}
},
actionComplete: function(args: ActionEventArgs) {
// You can get the event detail from the args.
console.log(args.data);
if (args.requestType === "eventCreated") {
// Here you can send your http request on event save action
} else if (args.requestType === "eventChanged") {
// Here you can send your http request on event update action
} else if (args.requestType === "eventRemoved") {
// Here you can send your http request on event delete action
}
} |
|
var scheduleObj = new ej.schedule.Schedule({
eventSettings: { dataSource: data },
actionComplete: function (args) {
// You can get the event detail from the args.
console.log(args.data);
if (args.requestType === "eventCreated") {
// Here you can send your http request on event save action
} else if (args.requestType === "eventChanged") {
// Here you can send your http request on event update action
} else if (args.requestType === "eventRemoved") {
// Here you can send your http request on event delete action
}
}
}); |