<template>
<div>
<ejs-gantt ref="gantt"
//...
:created="created">
</ejs-gantt>
</div>
</template>
<script>
export default {
//...
methods: {
created: function(args) {
this.$refs.gantt.ej2Instances.ganttChartModule.scrollElement.addEventListener("scroll", function(e) {
if(document.getElementById("GanttContainer_contextmenu")) {
var contextMenu = document.getElementById("GanttContainer_contextmenu").ej2_instances[0];
contextMenu.close();
}
}
);
}
}
};
</script> |