fullcalendar

Can I prevent events with conflict time?

落爺英雄遲暮 提交于 2019-11-27 07:20:28
问题 How can I prevent events with conflict time? Is there any variable to set up? 回答1: No, there is not a variable to set, but you can use something like clientEvents which retrieves events that fullcalendar has in memory. You can use the function below in the eventDrop. In the case below it uses a function to filter out whether the event will have have an overlap or not. function checkOverlap(event) { var start = new Date(event.start); var end = new Date(event.end); var overlap = $('#calendar')

Is there a way to prevent overlapping events in jQuery FullCalendar?

六月ゝ 毕业季﹏ 提交于 2019-11-27 06:58:46
Is there a way to prevent overlapping events in jQuery FullCalendar? ecruz I made a function that checks whether the given event is overlapping other or not. Returns true if the event is overlapping other and false otherwise. function isOverlapping(event){ var array = calendar.fullCalendar('clientEvents'); for(i in array){ if(array[i].id != event.id){ if(!(Date(array[i].start) >= Date(event.end) || Date(array[i].end) <= Date(event.start))){ return true; } } } return false; } You can use it when dropping or resizing and event and if the event overlaps other use the revertFunc that is received

Calling JQuery.ajax or JQuery.post from inside of one of the event callbacks results in a Type Error from Moment.min.js

☆樱花仙子☆ 提交于 2019-11-27 06:46:51
问题 I am working on a schedule using FullCalendar and i have hit a bit of a snag. I am trying to use the event callback functions to create a new event, and send the new event's information to my php script which then stores the information to the server. But whenever i try to call $.ajax or $.post from within one of the callbacks (and i have tried if from with in a few of them) i get this: Uncaught TypeError: Cannot read property 'month' of undefined moment.js:684 extend.monthsShort moment.js

FullCalendar 官方文档翻译

旧巷老猫 提交于 2019-11-27 05:56:43
1. 使用方式, 引入相关js, css后, $(‘#div_name’).fullCalendar({//options}); 接受的是一个option对象 2. 普通属性 2.1. year, month, date: 整数, 初始化加载时的日期. 2.2. defaultView: 字符串类型, 默认是’month; 2.2.1. 允许的views: 2.2.1.1. month 一页显示一月, 日历样式 2.2.1.2. basicWeek 一页显示一周, 无特殊样式 2.2.1.3. basicDay 一页显示一天, 无特殊样式 2.2.1.4. agendaWeek 一页显示一周, 显示详细的24小时安排(也就是议事日程) 2.2.1.5. agendaDay 一页显示一天, 显示详细的24小时安排 2.3. header: 定义按钮/文本在日历的顶部, false说明不使用header., 使用left, center, right三个属性来进行布局, 默认是{left: ‘title’, center: ‘’, right: ‘today prev, next’}, 支持使用的属性按钮: 2.3.1. title: 一个包含当前日期的文本 2.3.2. prev: 根据view的不同, 返回上一月/周/天 2.3.3. next: 根据view的不同, 返回下一月

Year View in Fullcalendar jquery plugin

回眸只為那壹抹淺笑 提交于 2019-11-27 05:17:10
问题 I started a YearView in fullcalendar (derived from the basic 'MonthView', needed to display longer events such as school holidays), and I could use a hand if anyone is already familiar with the way events get displayed on a view. Using the 'BasicEventRenderer', how do I populate the 'segmentContainer' for 'DayEventRenderer' ? And when do I initialize the default start & end date for delimiting the active year ? (the starting month could be changed, and it'd be nice to be able to keep the

Adding a Resource View/Gannt chart to jQuery Fullcalendar

痴心易碎 提交于 2019-11-27 05:00:11
问题 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

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

≡放荡痞女 提交于 2019-11-27 04:37:18
问题 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')

Add Icon(s) in first line of an event (fullCalendar)

匆匆过客 提交于 2019-11-27 04:28:58
问题 For specific attributes of an event to be displayed in the 'fullCalendar' matrix I would like to add icons to show them, for 'completed' an (i) button, or an URL symbol in case the event contains an URL link. I don't want to write any html string to one of the elements (fc-event-time/-title) in the <a> element, but define an additional element like this: <a> <span class="fc-event-time">15:15 - 16:15<br></span> **<span class="fc-event-icons"> ..some definitions for icons here ..</span>** <span

Change Fullcalendar event source after render

旧时模样 提交于 2019-11-27 04:26:52
I've been using FullCalendar v1.5.3 for a MS SharePoint replacement. I'm trying to re-render the calendar event's source. For instance, when the page loads by default this is the ajax call /calendar/events/feedTasks?start=1338094800&end=1341118800&_=1339103302326 We're using a select box to change the events source to only show tasks (pulled from different table), so after a selection the ajax call changes to: /calendar/events/feedEvents?start=1338094800&end=1341118800&_=1339103302326 This works. However, rather than just changing the current calendar event source, it creates a duplicate

AngularJS UI-calendar not updating events on Calendar

旧街凉风 提交于 2019-11-27 03:19:20
问题 I am using Angular UI-Calendar to show some events on the Calendar. The events are showing fine on the Calendar. But when I update any event's details, the event's detail is actually modified, but not modified on the Calendar display(eg: start). Initially, after I modified the event's details, I did a page reload to display modified changes and it worked too.In that method, I had empty $scope.events = []; array, which I filled after retrieving entries from DB. But now, I want to avoid that