fullcalendar

Detect click on background event

我的未来我决定 提交于 2019-11-28 04:05:53
问题 I have a Fullcalendar calendar and I add on it some background events. Those background events represent slots that cannot be clicked or dragged into. Is there a way to detect this (that the user clicked on a background event)? 回答1: Background event is rendered as a DIV with the class name fc-bgevent. My code for detecting the click background event is: element.fullCalendar({ ... dayClick: function(date, jsEvent, view) { if (jsEvent.target.classList.contains('fc-bgevent')) { alert('Click

Full Calendar Time interval Should be 1 hour and start from 6:30

谁说我不能喝 提交于 2019-11-28 03:56:46
问题 I tried this implementation Full Calendar Implementation. $("#available_classes_calendar").fullCalendar({ header: { left : 'prev,next', center : 'title' }, defaultView: 'agendaWeek', views:{ agenda:{ allDaySlot: false, minTime: "06:30:00", maxTime: "24:00:00", slotDuration: "00:60:00" } } }); In this all-day column should be start from 6:30am and interval slot should be 1 hour. So all-days column should look like: 6:30 am 7:30 am 8:30 am . . . 11:30 pm I tried lots of solution but not able to

fullcalendar, how to limit the number of events per day in the month view

狂风中的少年 提交于 2019-11-28 03:13:57
问题 I have many events on a day, and it works as expected but now looking at the month view, my calendar grid is much taller that expected. I'd like to hide some of these events from the month view, like a summary with a visual que that there are more on this day than can be shown. I can use eventRender and return false, but i would like to know how many events are on a given day, so i can limit the rendering to about 4, then perhaps i would add an event that says " more ... " So the question may

Adding a Resource View/Gannt chart to jQuery Fullcalendar

此生再无相见时 提交于 2019-11-28 02:52:18
I am using jQuery Fullcalendar and if you're not using it I suggest you do too because it is absolutely fantastic at what it does! However to be really useful to me and my project ( and many others ) I honestly believe it needs a resource/gannt view. Not a problem one would think... until you look under the hood of jQuery FullCalendar and see that the way it generates it's views is not for javascript developer wannabes... ie me. Having realised this is out of my league I had to go searching elsewhere looking for any calendar/scheduler that will provide a resource view. Here are three

fullcalendar js: fetching more events with ajax

青春壹個敷衍的年華 提交于 2019-11-28 02:19:37
问题 I'm using fullcalendar, how can I fetch more events from same server side, multiple urls? The initial one works, I just want to add additional events when they arrive(ajax). 回答1: You could use Ajax to get the data and then add dynamically the new source $.ajax({ url: "test.html", success: function(data){ var source = { events: [ { title: data.getTitle(), start: new Date(year, month, day) } ]}; $('#calendar').fullCalendar( 'addEventSource', source ); } }); 回答2: If each and every time you are

jquery Full Calendar not showing events

情到浓时终转凉″ 提交于 2019-11-28 01:35:33
问题 I am using asp.net mvc to list the events in the jquery full calendar. Below is the script i am using to list the events through json from mvc. $('#calendar').fullCalendar({ theme: true, editable: true, disableDragging: true, disableResizing: true, header: { left: 'prev,next today', center: 'title', right: 'month,basicWeek,basicDay' }, events: function(start, end, callback) { // do some asynchronous ajax $.getJSON("/User/GetEvents/", { start: dateFormat(start.getTime()), end: dateFormat(end

Change the day background color in FullCalendar

我们两清 提交于 2019-11-28 01:27:58
I'm using FullCalendar in my asp.net application. I need to change the day background color. What i have tried so far : dayRender: function (date, cell) { var today = new Date(); var end = new Date(); end.setDate(today.getDate()+7); if (date.getDate() === today.getDate()) { cell.css("background-color", "red"); } var start = new Date(); start.setDate(today.getDate()+1); while(start <= end){ //alert(start + "\n" + tomorrow); if(start.getDate() == date.getDate()){ cell.css("background-color", "yellow"); } var newDate = start.setDate(start.getDate() + 1); start = new Date(newDate); } } This change

FullCalendar TypeError: $(…).fullCalendar is not a function

十年热恋 提交于 2019-11-27 23:37:07
I was trying to put FullCalendar 2.1.1 but it is not working: <link href='/css/fullcalendar.css' rel='stylesheet' /> <link href='/css/fullcalendar.min.css' rel='stylesheet' /> <link href='/css/fullcalendar.print.css' rel='stylesheet' media='print' /> <script src='/js/moment.min.js'></script> <script src='/js/jquery.min.js'></script> <script src='/js/fullcalendar.min.js'></script> <script src="/js/jquery-ui.custom.min.js"></script> <script> $(document).ready(function() { $('#calendar').fullCalendar({ defaultDate: '2014-09-12', editable: true, eventLimit: true, // allow "more" link when too many

Fullcalendar Displaying the end time of an event

旧时模样 提交于 2019-11-27 23:30:21
how do i display the end time of an even in fullcalendar? My event is triggered right, but there is no end time displayed This is an example event. Did i miss something? title:'WM 2010 - 03.06.2010 - 00:00', description: 'Bei uns ist jeden Tag WM Party', start: new Date(2010, 5, 3, 00, 5), end: new Date(2010, 6, 3, 23, 6), allDay: true The appropriate solution in the most recent version of fullCalendar is to use displayEventEnd. This is because timeFormat afects more stuff. displayEventEnd allows us to even specify the views where we want the end time to be shown. displayEventEnd: { month:

FullCalendar with private google calendar event

橙三吉。 提交于 2019-11-27 23:06:00
问题 I currently using google calendar on my website with the iframe you can insert. I tested Fullcalendar and I like what you can do with it. But I would like to do same as the embed calendar, I would like to be able to create private event (not calendar, events). The sharing settings of the calendar is on public, but when using chrome, you can log with your google account and with the embed calendar you can see private event (if you have access to the calendar). Is that possible with