fullcalendar

js jquery 实现 排班,轮班,日历,日程。使用fullcalendar 插件

杀马特。学长 韩版系。学妹 提交于 2019-11-28 16:00:27
如果想用fullcalendar实现排班功能,或者日历、日程功能。那么只需要简单的几步: 这里先挂官网链接: fullcalendar fullcalendar官网下载链接 一、下载及简单配置 1、这里先明确你想要的是哪种形式式:fullcalendar 提供多种日历形式: 你们可以在官网首页的演示里面看到,在这里我主要讲一下我这里使用的两种实现: (1)日历模式(只是用fullcalendar实现) (2)时间轴模式(除了fullcalendar还用了官网的另一个插件叫schedule 在下载了fullcalendar之后将其引入你自己的项目,只需要进行很简单的配置就可以进行使用了。 这是需要运行插件的几个基本的配置,将其引入页面 <link rel='stylesheet' href='fullcalendar/fullcalendar.css' /> <script src='lib/jquery.min.js'></script> <script src='lib/moment.min.js'></script> <script src='fullcalendar/fullcalendar.js'></script> 此处需要注意的是jquery和moment的js必须在fullcalendar的js之前引入。如果你也想做时间轴模式的日历,并且已经下载了schedule的话

fullcalendar + qTip2显示事件详情

落爺英雄遲暮 提交于 2019-11-28 15:52:31
fullcalendar 是一个很优秀的日历插件。qTip2 是一个强大的提示工具。在讲下面的功能之前,需要对fullcalendar 和 qTip2 有些了解,可直接点击下面贴出的2个地址: fullcalendar qTip2 我现在需要实现的功能就是鼠标放到事件上去,展示事件详情,我们可以借助 fullcalendar的 eventRender 方法 和 qTips2 实现这个效果。 效果图如下: 具体实现步骤: 1.创建一个div,用于放事件详情; <div class="event-detail-wrap" id="event-detail"> <div class="detail-info-list"> <div class="js_event_detail_time"></div> <div class="js_event_detail_team"></div> <div class="js_event_detail_subject"></div> <div class="js_event_detail_teacher"></div> </div> <div class="action-group"> <a href="#">日程详情</a> <a href="#">复制</a> <a href="#">编辑</a> <a href="#">删除</a> </div>

Display more Text in fullcalendar

心不动则不痛 提交于 2019-11-28 15:05:56
I am looking for a solution to display more information in event. For example in the DayView you see a event from 06:00 to 10:00. I want to display a additional description in this event (not only the time and the title). Jake1164 I personally use a tooltip to display additional information, so when someone hovers over the event they can view a longer descriptions. This example uses qTip , but any tooltip implementation would work. $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); $('#calendar').fullCalendar({

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

狂风中的少年 提交于 2019-11-28 13:11:16
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 Based on the accepted answer, I use the following event specs { title: '', start: moment().add(2,'h')

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-28 12:09:27
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:684 e jquery.min.js:4 Bc jquery.min.js:4 Bc jquery.min.js:4 Bc jquery.min.js:4 n.param jquery.min.js:4 n

Fullcalendar two events per day

旧巷老猫 提交于 2019-11-28 11:50:53
I´m using A JavaScript event calendar. Customizable and open source. https://fullcalendar.io/ Is it possible to set a maximum of two events per day in fullcalendar? I know that it is possible to set only one event. The eventReceive callback runs when an external event is dropped on the calendar and has been rendered. When this happens we can use the "clientEvents" method to check how many events are already present on the day the external event was dropped on, and decide on that basis whether to remove it from the calendar. eventReceive: function(event) { var newEventDay = event.start.startOf(

FullCalendar: How to sort & display Events on Day of MonthView?

元气小坏坏 提交于 2019-11-28 11:06:56
问题 All events on day slot of monthly view are sorted based on the start time i.e. event start hour 0-23, hour 0 on top and 23 on bottom. But I want to show the active( event.IsActive == true ) tasks on top and after the Active task list, inactive( event.IsActive == false ) tasks will be displayed sorted by start hour 0-23. Example: ActiveTask-1 12:00AM ActiveTask-2 3:00AM ActiveTask-3 21:45PM InactiveTask-1 12:00AM InactiveTask-2 7:00AM InactiveTask-3 23:30PM Is this possible in fullCalendar?

AngularJS UI-calendar not updating events on Calendar

◇◆丶佛笑我妖孽 提交于 2019-11-28 09:57:06
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 page reload. So, once the event's details are modified from modal window, I clear the contents of $scope

Fullcalendar end date wrong by one day

谁说胖子不能爱 提交于 2019-11-28 09:41:11
I am making a fullCalendar backed car reservation functionality. This is the coffescript file. updateEvent = (event, delta, revertFunc) -> $.ajax type: "PUT" dataType: "json" success: (data) -> alert "Success" error: (data) -> revertFunc() errors = data.responseJSON.reservations[0][1] for message of errors alert errors[message] url: event.updateUrl data: reservation: reservation_start: event.start.format('DD-MM-YYYY') reservation_end: event.end.format('DD-MM-YYYY') transport_id: event.transport_id user_id: event.user_id $(document).ready -> $(".calendar").fullCalendar events: gon.path

jQuery FullCalendar click 'next' event notificatin

我们两清 提交于 2019-11-28 09:37:43
问题 How can i get notified when the user click on 'next' (arrow) ? I'm using the calendar in month view and I want to load the next month data on demand. Also, do smbdy has an example of consuming data from ASP.NET (AJAX call) ? 回答1: you can use the viewDisplay trigger (http://arshaw.com/fullcalendar/docs/display/viewDisplay/) but that gets called also when the calendar loads, or the user switches views. it sounds like you'd want an events function instead: http://arshaw.com/fullcalendar/docs