fullcalendar

Fullcalendar v2 dayRender for agenda view and agendaWeek

久未见 提交于 2019-12-11 12:52:59
问题 In version 2 of Fullcalender I need the dayRender callback, I want to change color of disable day. This callback only works for month, basicWeek, and basicDay views.. But I need this callback for agendaWeek and agenda. Do you have any alternative or answers for dayRender ? I try this : dayRender: function(date, cell){ if (date > maxDate){ $(cell).addClass('disabled'); console.log("ok"); } } and my view views: { agendaSix: { type: 'agenda', duration: { days: 6 }, buttonText: '5 day', },

Full Calendar - How to distinguish past events and future events

大城市里の小女人 提交于 2019-12-11 12:36:22
问题 I am having a hard time trying to remove past and future events that are not reflected by the current month. Currently this is what I have the following code below: <cffunction name="FullCalendar"> <cfscript> var calendarid = $.getbean('content').loadby(title='Regal Events').getcontentid(); </cfscript> <cfsavecontent variable="local.str"> <cfoutput> <h3>Upcoming Events</h3> <div id="UpcomingCal" class="calendarResize"> </div> <script> mura.loader() .loadcss("#$.siteConfig('requirementspath')#

How can I use fullcalendar.io as a type=“date” picker?

若如初见. 提交于 2019-12-11 12:28:30
问题 Fullcalendar.io is quickly becoming the top-choice library for calendar applications. Is it possible to use it as a <input type="date"> picker? Something like the jQuery UI "Datepicker"? I'd like to have something like... <form> <input type="date"> </form> <script type="text/javascript"> $('input[type=date]').fullCalendar() </script> 回答1: I was able to get something like I wanted with the following, $(document).ready(function() { $('#foo').click( function () { var $input = $(this); alert('bar

Destroy fullcalendar on bootstrap tabs click before new calendar is initialized

巧了我就是萌 提交于 2019-12-11 12:26:39
问题 I have two tabs from bootstrap. Fullcalendar is inside the second tab which is by default hidden. So I use the onclick event to trigger the calendar_view_session function. But every time I visit that tab the new calendar appends in the same tabs. Its actually duplicating the calendar. calendar_view_session: function(){ var calendarEl = document.getElementById('calendar'); var calendar = new FullCalendar.Calendar(calendarEl, { plugins: [ 'dayGrid', 'timeGrid', 'list', 'interaction' ,

JS Fullcalendar background color not setting

家住魔仙堡 提交于 2019-12-11 12:24:27
问题 I am trying to set the background color of an event with FullCalendar JS http://arshaw.com/fullcalendar/ Here is my JS: <script> $('#calendar').fullCalendar({ events: [ { title: 'Test', start: '2014-08-07', url: '#', backgroundColor: '#FF0000', editable: true }, ] }); </script> And here is what that produces Why is it not producing the result I want, the event background colored as red. 回答1: You can change the backgroundColor property for your events like: $('#calendar').fullCalendar({ {

Using Fullcalendar to Display Google Calendar Event Description Field in Tooltip

南笙酒味 提交于 2019-12-11 12:10:35
问题 I recently started a project using Fullcalendar (http://arshaw.com/fullcalendar/) to display multiple Google Calendar feeds primarily for the ability to have control over the theme. I'd like to keep as much of the functionality of Google Calendar intact as possible, albeit as a read only display to use in place of the embedded widget that Google provides. To that end, I'm looking to alter the default eventClick behavior to display info from the event's description field in a tooltip (qTip

How do I determine the start and end date on the agendaWeek view in FullCalendar?

谁说胖子不能爱 提交于 2019-12-11 12:08:00
问题 I'm customizing the width and position of the events my FullCalendar with agendaWeek as the view. I need to know what the start and end dates are of the week. I know I can use $('#calendar').fullCalendar('getDate') to get the current date and I could figure out the day of the week and calculate the start/end dates, but I'm hoping and assuming there is a property that I can read. 回答1: If you're getting your events from a file, FullCalendar posts the start and end dates for the current week

Full Calendar + Access Dates via Nested JSON Feed

ⅰ亾dé卋堺 提交于 2019-12-11 11:46:33
问题 I am working on trying to implement Full Calendar via a JSON feed. I am having issues getting the data to derive from a nested object: Data: [{"id":22,"weeks":[{"title":"Testing New Filter","start":"2015-01-19","end":"2015-01-29","url":"http://localhost:3000/campaigns/testing-new-filter"},{"title":"Not this Feed","start":"2015-02-24","end":"2015-03-07","url":"http://localhost:3000/campaigns/not-this-feed"}]},{"id":23,"weeks":[]}] Calendar Implementation: $('#calendar').fullCalendar({

Fullcalendar Event drop and ajax

随声附和 提交于 2019-12-11 11:16:48
问题 I'm currently working with the great Jquery plugin - Fullcalendar but I'm encountering a problem. I use the eventDrop listener and I want to send the event information using Ajax to my server side. My code is the following : eventDrop: function (event, dayDelta) { $.ajax({ url: ("/PSAdmin/RFCalendar/DragEvent"), data: ({ type: event.className, delta: dayDelta, newDate: event.start, newTitle: event.title }), type: "POST", success: function (data) { $('#calendar').empty(); loadCalendar(); },

FullCalendar.js: Event callbacks not firing for added events that get resized/clicked/dropped?

百般思念 提交于 2019-12-11 10:57:33
问题 After adding an event and then changing it again, nothing happens, // * no callback . I even used fullCalendar('refetchEvents') still no luck. Am I missing something? Here is the code: $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'agendaWeek' }, defaultDate: '2015-04-20', editable: false, eventLimit: true, firstDay: 1, defaultView: 'agendaWeek', timeFormat: 'HH:mm', lang: 'de', columnFormat: 'dddd D.M.', allDaySlot: false, slotDuration: '00:30:00',