Hi there,
I would like to know if there is a way to trigger a custom event from the event tooltip handler, that would then be consumed in my .vue file.
Something like this:
CalendarConfig.js :
features: {
eventTooltip : {
tooltip: {
tools: {
// Add a new tool to send a birthday message
messageTool: {
cls: 'b-fa-message',
tooltip: LocaleManager.locale?.EventTooltip?.messageTooltipTitle,
async handler() {
this.triggerEvent('sendBirthdayMessage') //==> this is not working!
}
}
}
}
}
}
And then in my .vue file:
CalendarView.vue :
<template>
<div class="calendar-section">
<bryntum-calendar
ref="calendar"
v-bind="calendarConfig"
:events="events"
:resources="resources"
@sendBirthdayMessage="sendBirthdayMessage"
/>
</div>
</template>
...
methods: {
sendBirthdayMessage () {
console.log('sendBirthdayMessage')
}
}