Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147968 | Sep 30,2019 11:15 AM UTC | Oct 29,2019 04:50 PM UTC | Vue | 9 |
![]() |
Tags: Gantt Chart |
<template>
<ejs-gantt id="gantt"
//...
@endEdit="endEdit" >
</ejs-gantt>
</template>
<script>
//...
methods: {
//...
endEdit(args){
console.log('triggered')
}
},
</script> |
onActionComplete(args)
{
//…….
if (args.type === 'save') {
//…….
EXAMPLE_DATA.push(args.data.taskData);
this.data = cloneDeep(EXAMPLE_DATA);
}
//…….
} |
[ganttChart.vue]
//...
data() {
return {
dataSource: new DataManager({
url: 'http://localhost:7777/GanttEJ2/getData',
crossDomain: true
}) ;
//...
Method: {
onActionComplete: function (args) {
if (args.action == "add”) {
$.ajax({
type: "POST",
url: 'http://localhost:7777/GanttEJ2/addData
data: args.data.taskData,
//...
});
}
if (args.action == "DialogEditing" || args.action == "CellEditing") {
$.ajax({
type: "POST",
url: 'http://localhost:7777/GanttEJ2/updateData
data: args.data.taskData,
//...
});
}
if (args.action == "delete") {
$.ajax({
type: "POST",
url: 'http://localhost:7777/GanttEJ2/deleteData
data: args.data.taskData,
//...
});
}
}
}); |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.