Does anyone know if it’s possible to add custom content to the calendar modal footer? I’d like to add a delete button on the left, in addition to the default “Done” button that’s on the right.
Thanks,
N.
Does anyone know if it’s possible to add custom content to the calendar modal footer? I’d like to add a delete button on the left, in addition to the default “Done” button that’s on the right.
Thanks,
N.
Something like this is doable:
app.calendar.create({
// ...
on: {
open(calendar) {
calendar.$el.find('.calendar-footer').prepend(`
<a class="link my-delete-button" style="margin-right: auto">Link</a>
`)
calendar.$el.find('.my-delete-button').on('click', function () {
// do something
})
}
}
})
Legend! That’s perfect, thanks!