fullcalendar

Full Calendar is not showing events from JSON source

99封情书 提交于 2019-12-11 02:22:57
问题 I've read the entire documentation on Full Calendar and still I cannot render anything from a JSON source. I'm running Rails 3.2 and when I preview my JSON source with Google's Developer Tools I see the correctly formatted JSON objects and a Header with a Status Code of 200 and an Accept: application/json. I'm calling Full Calendar like so: $('#calendar').fullCalendar({events: '/events'}); If I declare a single JSON object and then render it by itself it renders fine like so: var event = {

how to get start and end date of external dragged and dropped event on fullcalendar

懵懂的女人 提交于 2019-12-11 02:17:34
问题 I have a quick question about fullcalendars drag and drop functionality. Here is my JS Code $('#calendar').fullCalendar({ header: { left: 'prev,next today', right: 'title' }, editable: true, droppable: true, // this allows things to be dropped onto the calendar !!! drop: function(date, allDay) { // this function is called when something is dropped // retrieve the dropped element's stored Event Object var originalEventObject = $(this).data('eventObject'); console.log(originalEventObject.title)

Fullcalendar: shrink/expand calendar height

时间秒杀一切 提交于 2019-12-11 02:14:23
问题 This is the calendar I have, however, I'd like for it to be shrunk down a bit. When I do this with the following command I get a truncated schedule instead of a compressed one. Take a look: $('#calendar').fullCalendar('option', 'height', 200); ---OR WITH--- $('#calendar').fullCalendar('option', 'contentHeight', 200); Calendar before resizing with the above command: Calendar after trying to resize: You can see a scrollbar has appeared and some events are no longer present (until I scroll). I

Fullcalendar Making Headers Fixed

£可爱£侵袭症+ 提交于 2019-12-11 02:13:47
问题 I'm trying to make the Fullcalendar headers fixed. I found this post: in Fullcalendar is there a way to fix the header to not be scrollable but there wasn't a resolution published. I've looked in the documentation but can't find any reference to it. Is there a way to do this? Thanks, Rob 回答1: Although only talking about FullCalendar's scheduler component, I spent days hooking into scroll events of the intricacies of html with buggy results, especially as more views were needed. Then I

Why Uncaught TypeError: $(…).fullCalendar is not a function?

醉酒当歌 提交于 2019-12-11 01:57:46
问题 I imported it as below: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script type="text/javascript" src="js/jquery-3.1.1.min.js"></script> <script type="text/javascript" src="js/moment.js"></script> <script type="text/javascript" src="js/fullcalendar.js"></script> <script type="text/javascript" src="js/locale/ko.js"></script> <link rel="stylesheet" href="css/fullcalendar.css"> <link rel="stylesheet" href="css/fcImportantCSS.css"> <link rel=

FullCalendar - Google Calendar Events + eventRender

老子叫甜甜 提交于 2019-12-11 01:25:35
问题 An existing site that now has version 3.9.0 (previously version 3.4.0) of FullCalendar installed that is used to display content from various Google calendars no longer displays the event pop-ups when an event is clicked on to display the full event description. Instead the following code is being ignored: eventClick: function(calEvent, jsEvent, view) { showEventInformation(calEvent); // Prevent redirect to Google Calendar return false; } I was wondering if eventRender is able to display the

allow eventOverlap for background events only in fullcalendar

北慕城南 提交于 2019-12-11 01:21:42
问题 Is there a way to avoid event overlapping; like the eventOverlap: false inside the fullcalendar config, but on other hand allow overlap for background events? I want to render some events as background events into my calendar, just as info (that there are already some events in other calendars) but allow me to create, move or resize my new event on top. But all other events are not allowed to overlap inside this calendar. I just try this, without success: calendar:{ editable: true,

fullcalendar: how to add total duration of all events for each day

非 Y 不嫁゛ 提交于 2019-12-11 01:19:23
问题 I have noticed this question asked a few times but with no actual correct answer or good feedback to direct in the right path. I am using fullcalendar javascript plugin and trying to add the total hours of multiple events for each day which then I will display the sum in the header or footer of each day. I have tried many different ways to accomplish this but the closest I got to my result is with this code: eventAfterRender: function(event, element, view) { if (event.totalhrs > 0) { var sd =

FullCalendar and qTip UI issue when dragging event

喜欢而已 提交于 2019-12-11 00:29:14
问题 When dragging an event in week or day view. Randomly, qtips would be rendered with the old ones being still on the screen. I have been disabling the qtips using apis but no result whatsoever. Following is my qtip configuration for fullcalendar event render event: eventRender = function (event, element) { $(element).qtip( { content: '<div>Hello, World!</div>', position: { target: 'mouse', // Track the mouse as the positioning target adjust: { x: 5, y: 5 } // Offset it slightly from under the

FullCalendar - ümlaut in Week View Title

Deadly 提交于 2019-12-10 23:59:40
问题 Has anyone run into this strange issue? I can't seem to override this formatting in FullCalendar.io. I am simply looking to use a dash ("-") rather than the ümlaut 'W'. Current code is as below: header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, lang: 'en', views: { agenda: { minTime: '06:00', maxTime: '19:00' }, week: { titleFormat: 'MMM D YYYY' }, } 回答1: I found you can set the separator yourself like this: titleRangeSeparator: "-" Just add it at the