jqueryfullcalendarfullcalendar-4fullcalendar-scheduler

resourceGroupLabelDidMount in Full calendar v4.3.1 not working


I want to expand only Particular resource in fullcalendar. So that i used resourceLabelDidMount

     resourceGroupLabelDidMount:function(info){
      console.log("reached");
      if(info.groupValue === 'Doctor){
                 info.el.querySelector('.fc-datagrid-expander')
            .click();
      },

But here code is not reaching here. console in not working.I referred Fullcalendar Scheduler 5 programmatically expand resource group


Solution

  • The property called viewSkeletonRender enabled to expand particular resource in fullcalndar v4.  
    
         viewSkeletonRender: function(view){
                    $('#calendar .fc-divider .fc-cell-text').each(function(index, area_text_el) {
                if (area_text_el.innerText === 'Doctor') {
                                $(area_text_el).siblings('.fc-expander').click();
                            }
        });