Below is how my index.vue file looks like. The issue I am facing here is in the fancy box under the after close I am calling messageAlert method but it is returning this.messageAlert is not a function
Please help me resolve this issue.
<template>
<div>
<v-btn @click="openCal">Open Now</v-btn>
</div>
</template>
<script>
export default {
methods: {
messageAlert() {
alert("Method is called")
},
openCal() {
let src = 'https://google.com/'
$.fancybox.open({
type : 'iframe',
scrolling : 'yes',
src : src,
opts : {
afterShow : function( instance, current ) {
$("body").attr("style", "overflow: hidden; position: fixed;")
// setTimeout(function() {
$(".fancybox-content").attr("style", "height: 90% !important; overflow: scroll;")
$(".fancybox-content > iframe").attr("style", "height: 101% !important; overflow: scroll;")
$(".fancybox-content > iframe").attr("scrolling", "yes")
// }, 500)
},
afterClose : function( instance, current ) {
$("body").attr("style", "")
this.messageAlert();
this.messageAlert is not a function(error message)
}
}
});
}
}
};
</script>