Disable timeslot ranges in jQuery fullcalendar plugin

后端 未结 7 571
南方客
南方客 2020-12-05 03:14

I am developing a webapp and am using jQuery fullcalendar plugin.

I need to somehow disable certain time-slots.

The current method I am using is to add event

相关标签:
7条回答
  • 2020-12-05 04:01

    Fullcalendar has a builtin function businessHours which emphasizes certain time slots on the calendar.

    businessHours: [ // specify an array instead
    {
        dow: [ 1, 2, 3 ], // Monday, Tuesday, Wednesday
        start: '08:00', // 8am
        end: '18:00' // 6pm
    },
    {
        dow: [ 4, 5 ], // Thursday, Friday
        start: '10:00', // 10am
        end: '16:00' // 4pm
    }
    ]
    
    0 讨论(0)
提交回复
热议问题