Disable timeslot ranges in jQuery fullcalendar plugin

后端 未结 7 597
南方客
南方客 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 03:42

    BTW, Why don't you check it in Select callback?

    select: function( start, end, allDay, jsEvent, view ) {
        if( /*start is the disabled time*/ )
            return false;
        else{
            // Proceed with the normal flow of your application
            // You might show a popup to get info from user to create
            // a new event here
        }
    }
    

提交回复
热议问题