fullcalendar

Fullcalendar V4 - clear all events

喜欢而已 提交于 2019-12-11 16:49:00
问题 I'm loading dynamic events from a JSON source, but each time I click a different room, I want to clear all the events prior to fetching the new ones I have attempted to clear the eventSource but to no avail var eventSource = calendar.getEventSources() eventSource.remove(); which results in an error: Uncaught TypeError: eventSource.remove is not a function I have previously been using V3, but upgraded to V4 and the documentation is a little hard to follow on how to clear the events. 回答1: You

Post the new events to the backend controller

孤人 提交于 2019-12-11 16:47:05
问题 I am trying to use JQuery Full Calendar along with Spring MVC. I have made a demo like that. Target: I need to send the UPDATED calendar's data,after I enter my events, to the controller to handle it. Issue: I've succeded to re-send the calendar I've inistialzed to the controller. However,I can't send the updated calendar's data,after I enter my events, to the controller to handle it. Freemarker: <script type="text/javascript"> var calendar; var calendarData; function doAjax() { var test =

How to get the date when calendar rendering date cells

夙愿已清 提交于 2019-12-11 16:08:19
问题 I've a situation where I need to get the date to attach in each event url (For event url's I'm adding the href attr using jquery) query string but after checking the docs I found both eventClick and eventRender do not returns the date of cell upon which event is showing. I tried google for it and found tricky solutions using the eventClick callback and use page X and Y and then get the nearest element which holds the data attribute with date for the particular cell date but eventClick

overflow clipping issue for dragging external events into calendar (or from calendar back to 'external-events' list)

浪子不回头ぞ 提交于 2019-12-11 15:35:14
问题 I'm trying to drag events from the external events box to a list which has a z-index. I recreated the issue that I face in the following CodePen: Dragging an external event from the list into the calendar works fine. However, while dragging it from external event box into the calendar(or from the calendar back to the list), the event disappears behind the Virtual Scroll Repeat (until released into the callendar it shows up in the calendar). Note that I set the z-index of the external events

Disable and activate FullCalendar

大兔子大兔子 提交于 2019-12-11 15:29:07
问题 I want to initially set the editable, selectable, droppable and events to false (or not), when the user clicks a button, retrieves the data successfully, then set them to true. I'm a newbie and I don't know how to handle it with js var calendar = $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'agendaWeek,agendaDay' }, height: function () { return $(window).height() * 0.7; }, allDaySlot: false, defaultView: 'agendaWeek', //Here is the part I want to

eventMouseOver with FullCalendar on angular2

旧城冷巷雨未停 提交于 2019-12-11 15:15:34
问题 I'm currently working on a project. I need to implement a calendar in an angular2 project so I choose FullCalendar.io My dayClick and eventClick event work very well but my eventMouseOver don't trigger. I'm working with the version 3.6.1 of fullcalendar My planning.component.html <div *ngIf="calendarOptions"> <ng-fullcalendar #ucCalendar [options]="calendarOptions" (eventClick)="updateEvent($event.detail)" (eventMouseOver)="updateEvent($event.detail)" (dayClick)="showDate($event.detail)"> My

How to add event sources

情到浓时终转凉″ 提交于 2019-12-11 14:56:41
问题 In my fullcalendar page, I have a (default) event sources area that looks like such: eventSources: [{ url: '/events/index/', color: 'yellow', textColor: 'black', ignoreTimezone: false }], I have a model (and view) folder titled "rentalcars" . How would I make the events automatically be pulled from that model? This model has start and end dates. I tried: eventSources: [{ url: '/rentalcars/index/', color: 'yellow', textColor: 'black', ignoreTimezone: false }], which certainly does not work. I

Parse private gcal JSON object with FullCalendar

拈花ヽ惹草 提交于 2019-12-11 13:36:47
问题 I wonder how I can provide FullCalendar a private gcal JSON feed. I know it is possible to provide a public gcal url, so I would like to either hack the gcal.js to manipulate the JSON object instead of the url, or manually transform my JSON object to comply with FullCalendar's JSON format. So shall I follow one of this ways (and how) or is there any other alternative? Thanks 回答1: I think at this point the docu is a little bit fuzzy . You do not need to publish your calendar, but you have to

fullcalendar, columnFormat html

眉间皱痕 提交于 2019-12-11 13:26:53
问题 I want custom columnFormat to 2 row and style it like this: try to columnFormat: 'dddMMM dS' result: <1iv c8/15/2016am00="1amy">Mon</1iv><1iv>Aug 10</1iv> How could I custom the columnHead like the pic? Thanks 回答1: The columnFormat only takes a string but you can hook into the viewRender and modify it there $('#calendar').fullCalendar({ defaultView: 'agendaWeek', viewRender: renderViewColumns }); function renderViewColumns(view, element) { element.find('th.fc-day-header.fc-widget-header')

FullCalendar not loading from JSON except in Chrome

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 13:18:18
问题 I am using FullCalendar to make a theater-rehearsal schedule, and decided JSON was the best way to pull events from my MySQL database. In the JavaScript for the calendar page, I'm doing: $(document).ready(function() { $('#calendar').fullCalendar({ events: '/eventsfeed.php', [...] And my JSON feed is returning this, with the header "Content-type: application/json": [ { "title" : "First Show", "start" : "2012-04-26 19:00:00 EST", "end" : "2012-04-26 21:00:00 EST", "allDay" : 0, "comments" :