I need help adding a popover to an event in a resource timeline using fullcalendar/vue ^5.3.1 in Vue ^2.6.11 with ^2.1.0 of bootstrap-vue.
Although I found some guidance on Stack Overflow, the solution involving propsData
and .$mount()
doesn't feel like the most ideal approach. It also seems challenging to use HTML content for the popover.
In my component, I have:
<script>
import { BPopover } from 'bootstrap-vue'
</script>
And in calendarOptions:
eventDidMount: function (info) {
new BPopover({
propsData: {
title: info.event.extendedProps.title,
content: info.event.extendedProps.projectName,
triggers: 'hover',
target: info.el,
}
}).$mount()
}
If anyone has better suggestions or thoughts on how to improve this implementation, please let me know. Thank you!