From 69b213f9026ca9bf3e659bac683317db589a3996 Mon Sep 17 00:00:00 2001 From: Marko Zunic Date: Wed, 18 Mar 2020 12:07:27 +0100 Subject: [PATCH] Can listen to contextmenu bar events using @contextmenu-bar on g-ganttc-chart Bumped npm package version --- package.json | 2 +- src/GGanttBar.vue | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a7ddcf6..875b3a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-ganttastic", - "version": "0.9.3", + "version": "0.9.4", "description": "A simple and customizable Gantt chart component for Vue.js", "main": "./dist/index.js", "scripts": { diff --git a/src/GGanttBar.vue b/src/GGanttBar.vue index d3181ef..448fccc 100644 --- a/src/GGanttBar.vue +++ b/src/GGanttBar.vue @@ -151,6 +151,10 @@ export default { this.onBarEvent(e, this) }, + onContextmenu(e){ + this.onBarEvent(e, this) + }, + onMousedown(e){ e.preventDefault() if(e.button === 2 || this.barConfig.immobile){