I see that using v2.1.1 there is an extra week displayed after September - so the first 10 days of October are displayed there.
Examples:
Code:
<div id="calendar"></div>
$('#calendar').fullCalendar();
Any idea how to remove the superfluous last week (October 5-11)?
Thanks
Definition of calendar week : a week beginning with Sunday and ending with Saturday.
You need to implement the eventResize to save the effect of dragging the event across days. ideally, create a function to post your data and call it from each event. function saveMyData(event) { jQuery. post( '/event/save', { title: event.
We can get start date by getView event with intervalStart. We can get end date by getView event with intervalEnd. var month = $('#calendar'). fullCalendar('getView').
There are a couple places you could look. It sounds like the issue may have been resolved by setting a value for fixedWeekCount (indicated in the comments), but you may also want to take a look at weekMode:
'fixed'
The calendar will always be 6 weeks tall. The height will always be the same, as determined by height, contentHeight, or aspectRatio.
Use fixedWeekCount as true instead.
'liquid'
The calendar will have either 4, 5, or 6 weeks, depending on the month. The height of the weeks will stretch to fill the available height, as determined by height, contentHeight, or aspectRatio.
Use fixedWeekCount as false instead.
'variable'
The calendar will have either 4, 5, or 6 weeks, depending on the month. Each week will have the same constant height, meaning the calendar’s height will change month-to-month.
Use height as "auto" and fixedWeekCount as false instead.
the solution worked for me is; adding the option
fixedWeekCount: false
,
to config properties of ui-calendar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With