FullCalendar switch between weekends and no weekends

后端 未结 7 1394
天命终不由人
天命终不由人 2021-01-14 15:48

I was wondering if there was a way in Arshaw\'s FullCalendar to: 1- Change the calendar from showing weekends to not show weekends and vice versa. 2- To dynamically change t

相关标签:
7条回答
  • 2021-01-14 16:45

    I came across this on google and figured I would add an option not mentioned already. The calendar days all have a css class with their name, making them easy to target.

    $(document).ready(function(){
       $('#toggleOff').on('click', function(){
           $('.fc-sat').hide();
           $('.fc-sun').hide();
       });
    
       $('#toggleOn').on('click', function(){
           $('.fc-sat').show();
           $('.fc-sun').show();
       });
    });
    
    0 讨论(0)
提交回复
热议问题