Tuesday, June 4, 2024
 Popular · Latest · Hot · Upcoming
118
rated 0 times [  121] [ 3]  / answers: 1 / hits: 5153  / 9 Years ago, thu, march 19, 2015, 12:00:00

I would like to disable multi selection day in fullCalendar.Can be selected only one day. I searched in here and fullCalendar website but I did not find exactly what I want.


More From » jquery

 Answers
2

DEMO: http://jsfiddle.net/opqdqLa0/



var calendar = $('#calendar').fullCalendar({
editable: true,
selectable: true,
//header and other values
select: function(start, end, allDay) {
if(end.getTime() != start.getTime()){
calendar.fullCalendar( 'unselect' ) ;
}
}
});

[#38487] Wednesday, March 18, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
quinn

Total Points: 160
Total Questions: 86
Total Answers: 101

Location: Belarus
Member since Tue, Mar 14, 2023
1 Year ago
;