fullcalendar

change the color of a cell in a full calendar

不想你离开。 提交于 2019-12-06 14:28:02
I need to change the color of a cell of a arshaw full calendar. My requirement is :There should be a same color for a td cell for list of holidays provided by a company. There should be a same color for a td cell for list of holidays taken by an employee. How we can achieve this.I am able to change the color of events but not the cell. Also If we can change the color of a day inside a cell according to holidays and leave . If you are using Jquery-Ui theme you need to remove ui-widget-content class and apply your own class. In the code below i'm using a 40x100 image with purple flat color. CSS

Fullcalendar: How to merge two events that are next to each other?

不羁岁月 提交于 2019-12-06 13:40:36
问题 In my case I very often have users that instead of clicking and dragging to create a long event (day view), just click in one time slot (30 min), then click the next one (30 min). So instead of an event 13:00 - 14:00 I get first 13:00-13:30 and second 13:30-14:00. To prevent this I would like to merge both events into one so that they show up as 13:00 - 14:00. How to do that properly? 回答1: This is how I finally solved it: // user choses event select: function (start, end, jsEvent, view) { var

Change cell background in fullCalendar agenda view based on start and end of a selection event

风流意气都作罢 提交于 2019-12-06 13:36:02
问题 Is it possible to highlight cells in full calendar based on start and end date in agendaWeek view. Any help is really appreciated. My problem is in select event, based on start and end time i want to change the color of cells based on end and start time, just like when i add an event. Thanks in advance. var calendar = $('#eventCal').fullCalendar({ header:{left:'prev,next today', center:'title', right:'month,agendaWeek,agendaDay'}, selectable:true, /*selectable: { month: false, agenda: true },

How to display a specific month in fullCalendar?

微笑、不失礼 提交于 2019-12-06 13:27:43
问题 I have two columns with a type value of date in one table. (1.ri_startDate , 2.ri_endDate) These two columns store different dates. ri_startDate > 2017-12-3 ri_endDate > 2018-3-4 When displaying fullCalendar I would like to display the month based on these two values. To put it easily, "2017-December, 2018-January,February,March" I would like to display only four months. (Other months prevent the expression) How do implement this? Tell us what you think. 来源: https://stackoverflow.com

FullCalendar highlight row

て烟熏妆下的殇ゞ 提交于 2019-12-06 12:32:24
I'd like to highlight an arbitrary set of rows within FullCalendar using the AgendaWeek view. Since each row has it's own css class (for instance, fc-slot32), I figured this wouldn't be much of a problem. However, when I apply a background colour to this row, it messes with the calendar grid. More specifically, it removes the separating borders between days on that row. I'm unsure as to how FullCalendar actually achieves the calendar grid in the first place - does anyone know how I can possibly highlight the row without removing the grid? If you know what row you want highlighted, this would

Displaying image inside a fullcalendar event with eventRender

拥有回忆 提交于 2019-12-06 12:28:06
问题 I am trying to display an image in the fc-event-inner class using addClass . I want to do this with jquery so I can use different images in different events. Can anyone tell me why this doesn't work? calendar.fullCalendar('renderEvent', { title: title, start: start, end: end, allDay: allDay, eventRender: function(copiedEventObject,element) { element.find('.fc-event-inner').css('background-image',"url(icons/kalender_medicin_100px.png)") }, className: '.fc-event-inner' }); 回答1: You should

how to refresh fullcalendar v4 after change events object using ajax

試著忘記壹切 提交于 2019-12-06 12:27:30
问题 i use fullcalendar v4 to show events. events shows in load normally ,but i need to add a filter using multiple checkboxes and refresh fullcalendar events after onchange checkbox with ajax . after change i get the new object events but i need to refresh fullcalendar i try with calendar.render(); but not working fullcalendar V4 !! fullcalendar script var taskEvents = JSON.parse($("input[name=tasks_events]").val()); var calendarEl = document.getElementById('tasks_calendar'); var calendar = new

Dynamically created external events not draggable

混江龙づ霸主 提交于 2019-12-06 12:27:18
I'm researching now for over a week and yet I can't drag my JSON value to external draggable divs to a Fullcalendar from Arshaw. Thanks to some help I have my json data loaded to the external divs. All looks correct, however after appending dynamically created divs to the div with 'external-events' class my events are not draggable anymore. If I add .draggable() to my newly created divs to the divs with '.external-event' class it becomes draggable but I can't drop them correctly to my calendar. A not draggable new div with the title value will appear under a new blank draggable div. It is so

FullCalendar: How can i display an icon on each day of the month using the function DayRender?

放肆的年华 提交于 2019-12-06 12:03:57
I am building a calendar via FullCalendar . I would like to display a small icon img for each day of the the current month. regardlees to any events. (lets say i dont have events at all). i would like to use the DayRender function. if that possible here is the impletetion of my calendar so far: $(document).ready(function() { var json_backgrundColor ={"1":"#f1f9ef","2":"#edf5f9","3":"#edf5f9","4":"#f7fafc","5":"#f7fafc","6":"#f7fafc","7":"#f7fafc","8":"#f7fafc","9":"#edf5f9","10":"#edf5f9","11":"#f7fafc","12":"#f7fafc","13":"#f7fafc","14":"#f7fafc","15":"#f7fafc","16":"#edf5f9","17":"#edf5f9",

How to limit events per time slot in fullcalendar?

吃可爱长大的小学妹 提交于 2019-12-06 12:03:48
问题 Is it possible to limit FullCalendar-2 to add events only in slot interval and limit it to 2? For example, users can add event only between 12:00:00 - 12:15:00, it is not possible to add longer event (12:00:00 - 12:30:00) and he can add it only if there is a 'free' slot. Orage events are correct (max 2 events in time slot), events blue are wrong (over 2 events) Here's an example $(document).ready(function() { // page is now ready, initialize the calendar... $('#calendar').fullCalendar({