Hello to all, welcome to therichpost.com. In this post, I will tell you, How to show all the events related to same resource id in fullcalendar on event-click?

fullcalendar is the best A JavaScript event calendar. Customizable and open source.
Here is the working code for get all events in fullcalendar related to same resource id:
eventClick: function(calEvent, jsEvent, view, resourceObj) {
var dayEvents = $(‘#fullCalendar’).fullCalendar( ‘clientEvents’, function(event){
if(calEvent.resourceId == event.resourceId)
{
return moment(event.start).format(‘YYYY-MM-DD’) === moment(calEvent.start).format(‘YYYY-MM-DD’);
}
console.log(dayEvents);
}
There are so many tricks in fullcalendar and I will let you know all. Please do comment if you any query related to this post. Thank you. Therichpost.com
Leave a Reply
You must be logged in to post a comment.