The problem with adding the listener like that is that it will live in the scope of the "schedulerConfig.js" file, making it hard to reach other parts of your application. I would instead define a listener for `eventcontextmenuitem` on <scheduler> and have easier access to other vue components the normal way.
<scheduler
// The rest of your configs
// ...
@eventcontextmenuitem = "onEventContextMenuItem"
>
In `onEventContextMenu` I would check the `item` argument to determine if it is the "Booking editor":
onEventContextMenu({ item }) {
if (item.ref === 'bookingEditor') {
// Since this code runs in your Vue app and not a config file, it should be much easier to reach what you need
}
}
Thanks, I've tried as you say but it doesn't seem to work, I've checked the scheduler.vue component as I see
listeners : {
catchAll(event) {
// Uncomment this line to log events being emitted to console
console.log('Scheduler emit', event.type);
this.$emit(event.type, event);
},
thisObj : this
},