Fullcalendar show dates outside of validrange - fullcalendar

I have a calendar that has a validrange and a visiblerange set like below. I want the calendar events that aren't in this range to be visible but greyed out. At the moment if the event falls outside this range it doesn't appear.
visibleRange: {
start: PeriodStart,
end: PeriodEnd
},
validRange: {
start: PeriodStart,
end: PeriodEnd
},

Related

clicking 'next' on resourceTimelineMonth should only go 1 month forward not 2 like in view duration

I use the fullcalendar resourceTimelineMonth view to show events of my resources in a 2 month slot. If i click on next, the next 2 months are shown (Jan/Feb -> Mar/Apr), but i want to go only one month forward (Jan/Feb -> Feb/Mar). Is this possible?
Here is my current view initialisation:
initialView: 'myTimeline',
views: {
mTimeline: {
type: 'resourceTimelineMonth',
duration: { months: 2 },
slotDuration: { days: 1 }
}
},

How to make time change on ToolTip as event is dragged or Resized?

When displayEventTime: true the times show on the events and when the events are dragged or resized the time accurately change in real time on the event. What do I need to add to my code to have the Tooltip popup change the time accurately in realtime as well? Variables line1 and line2 is the start and end time. CodePen link provided below, Thank you
var tooltip = new Tooltip(info.el, {
title: line1 + " " + line2,
placement: 'top',
trigger: 'hover',
container: 'body'
});
// events can have multiple parts, so make an array for each event and add all it's tooltips
var tooltips = info.event.extendedProps['tooltips'] || [];
tooltips.push(tooltip);
info.event.setExtendedProp('tooltips', tooltips);
},
eventWillUnmount: function(info) {
for (var tooltip of info.event.extendedProps['tooltips']) {
tooltip.dispose();
}
}
https://codepen.io/asilver666666/pen/ExgPZaV

How do you edit or select background events in FullCalendar?

I'm using FullCalendar's background events to implement blocked dates and days in my application.
But I cannot find any option to edit or select the background event from the calendar. For example how can i drag or resize background events?
Also it appears clicked events doesn't register on background events so i'm not able to select and delete them.
I have tried setting the editable field on the background event to true but it appears it doesn't have any effect.
events: [
{
start: '2019-04-11T10:00:00',
end: '2019-04-11T16:00:00',
rendering: 'background',
color: '#ff9f89',
editable : true
},
{
start: '2019-04-13T10:00:00',
end: '2019-04-13T16:00:00',
rendering: 'background',
color: '#ff9f89',
editable: true
}
]
I was expecting that I could use the editable property to allow editing the background event but it doesn't the event is still not editable.

Fullcalendar v3 visibleRange, validRange not working properly

I am trying to show visibleRange from 2017-08-15 to 2017-09-03, but on the calendar show's range: 27, 28, 29, 30, 31, 1, 2. Missing half of the days from the range. But if I set range from 2017-08-10 to 2017-09-01, shows all date's inside the range.
Here is the image from the range 2017-08-15 to 2017-09-03
Here is the code I used:
$("#calendar").fullCalendar({
defaultView: 'month',
fixedWeekCount: true,
selectable: true,
visibleRange: {
start: '2017-08-15',
end: '2017-09-03'
},
validRange: {
start: '2017-08-15',
end: '2017-09-03'
},
disableDragging: true,
editable: true,
events: [
{
title : '55.000 Qmiles',
start : '2017-10-13'
},
{
title : '55.000 Qmiles',
start : '2018-04-08'
}
]
});
The reason why I need this is to create a 15-days calendar, when you click NEXT it will show next 15 days instead of the full next month. visibleRange is the way i found it could work, but I got this "bug" since sometimes the range will not show all days.

making title, start, end invisible

Hi I was just wondering if there's a way to make the "title, start, end" invisible on the calendar for an event. Reason so is I would like to implement the qtip to show these information when they hover over the event. I'm using the most updated version of fullcalendar which is from this file: "fullcalendar-1.4.6.zip" with C# as serverside and jQuery as clientside. Thank you all for looking.
I have a very similar requirement (show tooltip on hover) and i had to remove the start and end time from the event's header. I have done it as below. The magic gets done by the timeFormat: {....} option block ():
timeFormat: {
// for agendaWeek and agendaDay do not display time in title
// time already displayed in the views
agenda: '',
// for all other views (19:00 - 20:30)
'': 'H:mm{ - H:mm}'
},
Note that I am using agenda views, and I remove the time components only for the week and the day views.
NOTE: As per my requirements, I did not have to remove the event-title. Question to you.... what would you display as the event header, if not the time AND the title? Would an empty header look a bit odd? Anyways.... let me know if you have any further issues.
Sample screen shot link: alt text http://img441.imageshack.us/img441/9587/calendarview.jpg.
A sample snippet of what options I had used:
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
timeFormat: {
// for agendaWeek and agendaDay do not display time in title
// time already displayed in the view
agenda: '',
// for all other views (19:00 - 20:30)
'': 'H:mm{ - H:mm}'
},
columnFormat: {
month: 'dddd', // Monday
week: 'dddd, MMM dS', // Monday, July 13th
day: 'dddd, MMM dS' // Monday, July 13th
},
axisFormat: 'H:mm',
allDaySlot: false,
slotMinutes: 30,
defaultEventMinutes: 22,
editable: false,
aspectRatio: 2,
});
});

Resources