My end goal is to add a Bootstrap 4 Popover to Full Calendar to display calendar event descriptions, since depending on the view, Full Calendar cuts off the Title/description. Since Full Calendar is generating everything based off of the events prop I pass to it, I haven't been able to figure out how to add a popover of any sort. (I could probably do it with jQuery, but I'm really trying to cut jQuery out of the project to make my build size smaller)
There is great documentation here on normal usage of the popover with bootstrap vue: https://bootstrap-vue.js.org/docs/directives/popover/
Full Calendar doesn't provide a way to use any of the methods described in the Boostrap-Vue docs unfortunately. One thing I did try, but didn't work was this
<template>
<full-calendar
:events="events"
@eventRender="eventRender"
></full-calendar>
</template>
<script>
import FullCalendar from '@fullcalendar/vue'
export default{
data(){
events: [...],
},
methods: {
eventRender(info){
info.el.setAttribute('v-b-popover.hover.top', 'Popover!')
}
}
}
</script>
This does add the attribute to the HTML, but I assume it's after Vue processes the DOM, because it doesn't add the Popover.
Would there be any other way to use the parameters of the info
object passed to the eventRender function to add a Popover? (eventRender function docs: https://fullcalendar.io/docs/eventRender)