fullcalendar

Full-calender add color based on external event

ぃ、小莉子 提交于 2019-12-02 13:03:28
问题 I am using jquery full-calender. In page I have two input element 1- startdate( its date to start some event) 2- frequency( no of day for that event after that it will repeat itself ) So based on these two parameter I have to put color from startdate to enddate(sartdate+frequency). So externally how can I put color in full-calender???? jsfiddle link-http://jsfiddle.net/bhupendra21589/f160m655/ after changing startdate or frequency..date from startdate to enddate(startdate+frequency) should be

eventClick with lightBox?

大城市里の小女人 提交于 2019-12-02 11:43:44
问题 How I can open lightBox in eventClick, I need init a lightBox whe I click in a event. Thanks!! 回答1: I actually ended up using fancybox and the way I managed to get it working was to use the eventAfterRender to bind it up. I didn't have to do anything to the eventClick to prevent url follow, I think fancybox took care of that. It didn't work when I performed this same wire up in the eventClick so you might want to follow this example with lightbox and see if that works for you as well. Here is

How to disable business hours in FullCalendar

て烟熏妆下的殇ゞ 提交于 2019-12-02 11:29:24
I am trying to incorporate FullCallendar in one of our application to show events. Now I am facing a problem with business hours. In the month view it is showing wrong end date (one day less than actual) if any event ends before 9 am. So for example, say I have two following events Event 1: Start date&time : 2016-11-09T10:00, End date&time : 2016-11-20T17:30 Event 2: Start date&time : 2016-11-09T10:00, End date&time : 2016-11-20T08:30 In this case in the month view, Event 1 is covering all dates from 9 to 20, however Event 2 is covering dates from 9 to 19. I tried in Google with this issue and

Programmatically selecting a period of time in Fullcalendar

天大地大妈咪最大 提交于 2019-12-02 10:15:40
I'm using Fullcalendar in my asp.net application. If we need to select a month, or a year in Fullcalendar , there is a method as select . We can pass startDate and endDate to that method and select that period. I need to programmatically select weekends in a month. also need to select week days in a month. How can i achieve this ? What i have tried so far : Here is the Demo . So I've got your answer (I needed something very similar and stumbled across this when looking for help). We need to think outside of FullCalendar and the DOM for a minute. FullCalendar uses MomentJS, and this is about to

FullCalendar - Change event (appointment, diary entry) height

流过昼夜 提交于 2019-12-02 08:55:07
I'm trying to change the height of an event (appointment) in FullCalendar. I followed the suggestion in this answer How to edit width of event in FullCalendar? The problem is that I'm not too sure how to set the height so that it's relative to the calendar size. I tried this: eventAfterRender: function (event, element, view) { $(element).css('height', '100%'); } but it actually shows as a thin sliver, ditto for 200%, as if it's not having an effect. This works: eventAfterRender: function (event, element, view) { $(element).css('height', '200px'); } but it's only good for 1920 x 1080 resolution

fullcalendar - How to load all events on calendar using ajax

喜欢而已 提交于 2019-12-02 08:51:09
问题 I want to load all events in full calendar using Ajax when the page loads.I am getting response from Ajax.But the event is not added in Full calendar. here is my jquery code $('#calendar').fullCalendar({ theme: true, header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, defaultDate: '2014-06-12', editable: true, events: function(start,end,callback){ var mydata = { action: "fw_ajax_callback", subaction: "get_myappointments", }; $.ajax({ url :ajax_url, type:

Fullcalendar/Fetching JSON feed(Edited)

早过忘川 提交于 2019-12-02 08:22:27
I have a problem with the events in my fullCalendar object not showing when using ajax to fetch the data from my JSON feed. I believe the JSON format is proper though since the output from JSON.aspx is: [{"id":1,"title":"TESTTITLE","info":"INFOINFOINFO","start":"2012-08-20T12:00:00","end":"2012-08-20T12:00:00","user":1}] I used Firebug and it seems like the JSON feed is not getting fetched properly? When I add the upper JSON-feed directly in the events it displays properly. (Edit) The JSON response is now working, although the events are still not displayed in fullcalendar. JSON.aspx public

Show week number in FullCalendar

岁酱吖の 提交于 2019-12-02 08:14:54
I'm looking for a way to show the week number on the agendaWeek view. I've tried this method but without result. Actually, I need to put the number in the calendar title like this titleFormat: { month: "'Calendar<br />'MMMM yyyy", week: "'Calendar<br />Week' W", day: "'Calendar<br />'dddd dd MMM yyyy" } But of course 'W' doesn't exist, is there a way to do that ? Thanks. You can turn on week numbers in FullCalendar with this option: $("#calendar").fullCalendar({ weekNumbers: true }); Here's a link to the relevant documentation: http://arshaw.com/fullcalendar/docs/display/weekNumbers/ Btw, if I

Angularjs Full Calendar doesn't display events

时光怂恿深爱的人放手 提交于 2019-12-02 08:00:04
I am using that https://github.com/angular-ui/ui-calendar to use the FullCalendar in Angularjs. It displays the calendar and showing no errors; <div class="calendar" ng-model="eventSources" id="eventCalendar" calendar="calendar" config="uiConfig.calendar" ui-calendar="uiConfig.calendar"></div> but it wont display the events, i am not sure if i am doing it right, but it shows no error and i search through the internet and didnt find a solution yet. Could anybody give me a hint why its not working? Here is the code snippet: var calApp = angular.module('usercalapp', ['ui.bootstrap','dialogs',

How can I create an event based on pattern for calendar?

余生颓废 提交于 2019-12-02 07:59:41
I am trying to create a "shift" calendar for someone and I know what day the pattern starts on and I know the pattern for days on and off. But am having troubles translating it into code. They work 4 days, off of work 3 days, work 4, off of work 3 days, work for 4, off 2 days, repeat. I need to create some logic to create an event for a calendar based on this. This is what I have: $(document).ready(function() { var on = [4, 4, 4]; var off = [3, 3, 2]; var startPattern = "2017-03-04"; var days = $('#calendar').fullCalendar('getDate').daysInMonth(); var events = []; for (var i = $('#calendar')