Fullcalendar : How To Have Event Opening In New Tab/window Calendar View?
Sorry to ask this simple question but I've looked everywhere in this forum and in Google and can't find a simple, direct answer for this. I'm using the FooEvents plugin that relies
Solution 1:
If you are using v5, you can achieve this with the snippet below.
eventClick: function(event) {
if (event.event.url) {
event.jsEvent.preventDefault();
window.open(event.event.url, "_blank");
}
}
More info about eventClick is here.
Solution 2:
jQuery('.eo-fullcalendar').on( 'click', '.fc-event', function(e){
e.preventDefault();
window.open( jQuery(this).attr('href'), '_blank' );
});
Post a Comment for "Fullcalendar : How To Have Event Opening In New Tab/window Calendar View?"