fullcalendar

updating an event by dragging/dropping fullcalendar- Javascript

半世苍凉 提交于 2019-11-29 01:09:16
问题 I'm using Fullcalendar for a project I'm developing ... I have only one feature left to be implemented, which is when an existing event is dragged from it's original position to another time or date. I would like to know how I get the current object information (title, new start time, old start time, id, url, etc), so I can update the database with the newer information ... which property from the Fullcalendar object do I use? I implemented the drop property; drop : function(date, allDay) { /

FullCalendar in Django

て烟熏妆下的殇ゞ 提交于 2019-11-29 00:29:20
So, I have an appointment models class Appointment(models.Model): user = models.ForeignKey(User) date = models.DateField() time = models.TimeField() doctorName = models.CharField(max_length=50)` And I want to implement this in the FullCalendar tool. I'm not sure how to even begin. Any help is appreciated. Thanks. Since your question shows you haven't tried anything , guessing you know javascript and tried some hands on full calendar js. Suppose you have model named Event for displaying different events in calendar. class Events(models.Model): even_id = models.AutoField(primary_key=True) event

24 hour time format (so no AM to PM) for fullCalendar

Deadly 提交于 2019-11-28 23:56:20
问题 I'm trying to display the 24 hour time format in fullCalendar, I'm trying to use these instructions: http://arshaw.com/fullcalendar/docs/text/timeFormat/ So I've added timeFormat: { agenda: 'H(:mm)' //h:mm{ - h:mm}' }, to json.php : $(document).ready(function() { $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, editable: true, allDayDefault: false, events: "core/displays/calendar/json-events.php", defaultView: 'agendaDay'

fullcalendar & Angular 5

回眸只為那壹抹淺笑 提交于 2019-11-28 20:47:26
(New New Edit) Rustam has helped Arshaw build an Angular module that is awesome! Check it out. Works with Angular 7. https://fullcalendar.io/docs/angular (New Edit) I implemented Angluar 5 with FullCalendar @Alpha Release . I was previously having issues implementing FullCalendar to Angular below. I thought you guys might want an update as well. How can I properly implement fullcalendar with Angular 5 without any errors? I am trying to implement it into a specific component. I installed the following packages jquery moment fullcalendar fullcalendar-scheduler FYI, the post below is the closest

How to make FullCalendar work on touch devices?

心不动则不痛 提交于 2019-11-28 20:47:16
I was looking for a tablet friendly event calendar, but I did not find any suitable ones. But FullCalendar is one best jQuery calendar plugin that looks great on desktop and a tablet. This calendar works perfectly on a desktop, but when it comes to tablet I am unable to select the start time and end time of an event, based on the touch and swipe. When i do this the calendar gets scrolled. Is there any solution for this? I have been looking around for a solution in vein. Have anyone had this issue and did you solve it? Please share the method how you solved it. Any sort of help is appreciated.

rerendering events in fullCalendar after Ajax database update

雨燕双飞 提交于 2019-11-28 20:21:08
问题 I am trying to have fullCalendar reflect changes made to a database via AJAX. The problem is that it won't update the calendar on screen after a successful AJAX call. $.ajax({ type: "POST", url: "eventEditXHR.php", data: { //the data }, success: function(text) { $("#calendar").fullCalendar("refetchEvents"); }.... I'm I using the wrong method? What would be the best way to accomplish this without having to reload the whole page? Thanks for any input! 回答1: There are several ways. Some less

Jquery Full calendar and dynamic event colors

纵然是瞬间 提交于 2019-11-28 19:19:28
I would like to to pass the colors for the events through my json events source for jquery fullcalendar, how do i achieve this ? Nothing easier than that. If you check the documentation of jQuery Fullcalendar Event Colors you see that there is a parameter className you can specify for each event object. The content of that parameter gets added as class to the events and thus you only need to specify the css with matching name. The events (take note of the className parameter on event1) [ { title : 'event1', start : '2012-06-10', className : 'custom', }, { title : 'event2', start : '2012-06-05'

How to make past date unselectable in fullcalendar?

最后都变了- 提交于 2019-11-28 18:44:57
Problem is, how to disable selectable on PAST DATES in fullcalendar's month/week view. I want to user not allowed to click/select the on past dates. Here is some googled code snippet I am trying to implement on event rendering: selectable: true, selectHelper: false, select: function(start, end, allDay) { var appdate = jQuery.datepicker.formatDate('<?php echo $DPFormat; ?>', new Date(start)); jQuery('#appdate').val(appdate); jQuery('#AppFirstModal').show(); }, eventRender: function(event, element, view) { var view = 'month' ; if(event.start.getMonth() !== view.start.getMonth()) { return false;

How to add events to Google Calendar using FullCalendar

旧巷老猫 提交于 2019-11-28 18:03:32
I have searched through FullCalendar documentation and googled around but I haven't been able to find how to add events to Google Calendar using FullCalendar. I have tried using js Google APIs for Google Calendar but I am quite new to js and I have not resolved. So my question is: I have a website in which I used FullCalendar to manage a Google Calendar but I am not able to add events to it. Is there someone who can help me, maybe with a full working example? Many thanks for your precoius help! I had the same problem. I read many documentation, and at last I got a working Code. I share it here

Tiny version of fullcalendar [closed]

♀尐吖头ヾ 提交于 2019-11-28 17:12:27
问题 I am hoping someone can tell me how to get a very small version of FullCalendar (or something similar) that will do a widget size calendar without titles, just colored blocks for dates with events that can be clicked on. I am using fullcalendar in a wordpress site which is great, but all the google calendar widgets out there really suck! 回答1: You can make a fully functional tiny version by adding a bit of CSS. I had to add a "eventMouseover" callback to add the event name to the title