fullcalendar

Fullcalendar - Can we add custom data to our event Json Data?

不羁岁月 提交于 2019-12-30 08:33:11
问题 I want to send a type in my Event Json Response. Here is my code: $('#calendar').fullCalendar({ eventSources: [ {"id":"46_l","title":"CustomEvent-Chargement","start":"2013-12-02","end":"2013-12-03","className":"customEventsClass","type":1}, {"id":"46_d","title":"Custom Event-Livraison","start":"2013-12-11","end":"2013-12-12","className":"customEventsClass","type":2} ] }); You see I send a type in JSON Response array, is this possible? What parameter can we use for sending our custom data? 回答1

Dividing days into several sections in FullCalendar

杀马特。学长 韩版系。学妹 提交于 2019-12-30 07:26:07
问题 I want to divide days into sections, for example there are a lot of events in one day, and they take place in different rooms (A, B, C), I want to divide each days into columns A, B, C to separate events from different rooms. There is any way to do this? 回答1: I had the same prerequesites and I will do this way: In fullcalendar options: Create a fullcalendar "control" with title, prev, next and today. Create N fullcalendar "events" without navigation, and set each title to each room. You

Import iCal (ics) with fullcalendar?

杀马特。学长 韩版系。学妹 提交于 2019-12-30 04:06:21
问题 What would need to be done in order to load .ics files with fullcalendar? I cannot use php or .net unfortunately. 回答1: what you would need is to write your own extension to fullcalendar (similar to the gcal.js which is provided with fullcalendar) something you could call ical.js You should know that writting an complete ical parser can be quite draining so you may want to consider sticking with google calendar for your back-end unless you have a compeling reason. Should you go down the road

FullCalendar Custom/Override Header title

和自甴很熟 提交于 2019-12-29 09:21:01
问题 I want change the titleFormat of my calendar. At present, the title is in an h2 tag and we cannot personalize it by adding html code to the titleFormat option. For example put a span tag on my fixed value of the titleFormat (which is [] there). I would want to know if it is possible to override the updateTitle method of the class Header, without modifying fullcalendar.js. Or another possibility. I have 2 views : week with title format '[Semaine] W' and custom one Day with title format 'dddd D

FullCalendar limit number of events and have a MORE link

强颜欢笑 提交于 2019-12-29 07:58:09
问题 I have seen that there has been a request to add a MORE link, to the calendar and limit the number of events. Is this done yet? Or has anyone implemented there own work around, that they can share? If so please post your code. 回答1: With the new build v2.1.0-beta2 Launch 17 days ago Arshaw did the following RESOLVED ISSUES: Max events with "more..." link (304) Don't fire eventMouseover/eventMouseout while dragging/resizing (1297) NEW OPTIONS: eventLimit eventLimitClick eventLimitText

Disable drop on past dates in FullCalendar

倾然丶 夕夏残阳落幕 提交于 2019-12-29 07:02:14
问题 I started using the FullCalendar plugin recently. I am trying to implement a function on dropping events in the calendar. But before saving to the database, I want to check and disable/prevent dropping external events on dates before today. Any idea on how to do this?? I am looking for something like the past days getting greyed-out or something like that so that I can display the events already present as well. Just want to prevent the user from dropping an event on a past date. EDIT: drop:

How can I override defaults in jQuery Fullcalendar

戏子无情 提交于 2019-12-29 06:19:10
问题 I use Fullcalendar on my site, but I need all text in different language. There is piece of code in that plugin: // function for adding/overriding defaults var setDefaults = fc.setDefaults = function(d) { $.extend(true, defaults, d); }; But I have no ideas how I can use it. Please, I need help. 回答1: You just override the settings when creating the fullcalendar. Like this: var options = { theme: true, header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' },

How can I override defaults in jQuery Fullcalendar

好久不见. 提交于 2019-12-29 06:19:06
问题 I use Fullcalendar on my site, but I need all text in different language. There is piece of code in that plugin: // function for adding/overriding defaults var setDefaults = fc.setDefaults = function(d) { $.extend(true, defaults, d); }; But I have no ideas how I can use it. Please, I need help. 回答1: You just override the settings when creating the fullcalendar. Like this: var options = { theme: true, header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' },

fullcalendar'' has no exported member 'Options'.- getting error in Angular

半城伤御伤魂 提交于 2019-12-29 06:13:26
问题 I'm following this ApNg2Fullcalendar installing structure step by step , Im used Angular 5 , but I had following error node_modules/ap-angular2-fullcalendar/src/calendar/calendar.d.ts(3,10): error TS2305: Module ''fullcalendar'' has no exported member 'Options'. node_modules/fullcalendar/dist/fullcalendar.d.ts(695,36): error TS2304: Cannot find name 'JQueryPromise'. node_modules/fullcalendar/dist/fullcalendar.d.ts(696,29): error TS2304: Cannot find name 'JQueryPromise'. node_modules

(fullcalendar) Passing calendar background color in event object with start/stop time

拥有回忆 提交于 2019-12-29 01:30:12
问题 I am using fullcalendar and I am looking for a way to pass background color as an event so that my calendar app can use a combination of colored events and colored backgrounds. I'm pretty sure this is not supported by the library, so if anyone has any notes towards coding the feature or experience working with the code, that would be helpful. The following question is very similar to mine, but not written clearly enough to know if it's a dupe: Fullcalendar event cell background color Update 1