fullcalendar

Only month view in fullcalendar (remove/Hide “Day” and “Weeks” view)

跟風遠走 提交于 2019-12-09 16:14:29
问题 My fullcalendar has - "Month|Week|Day" view , I want to remove or hide the "Week" and "Day" views as we have been using only "Month" View. Can you please tell me how to do this? 回答1: When you start fullcalendar, don't include agendayDay and agendaWeek. Something like $('#calendar').fullCalendar({ header: { left: 'prev,next', center: 'title', right: 'month' } }); Update: To get rid of the month button: $('#calendar').fullCalendar({ header: { left: 'prev,next', center: 'title', right: '' } });

When using jquery fullCalendar, Why am i seeing duplicate events after switching months?

半世苍凉 提交于 2019-12-09 05:19:01
问题 I am using jquery fullCalendar plugin and i am running into a weird issue. When i load the first month (December 2013 in this case) it works fine . I call my ajax event and return a set of events. I return 40 events from my server and i see 40 events render. I then move to the next month (Jan 2014) and it also works fine. (41 events from the server and 41 events show up in the GUI) I then click BACK to change back to December 2013 and i get the ajax event, which returns the same 40 events (as

webservice - unknown web method parameter name methodname

こ雲淡風輕ζ 提交于 2019-12-09 03:36:31
问题 I called a webservice for fetching items in fullcalendar. The method is never called and firebug gives this error: * "POST [http]://localhost:50536/FullCalendar/ServicioFullCalendar.asmx/GetEventosCalendario POST [http]://localhost:50536/FullCalendar/ServicioFullCalendar.asmx/GetEventosCalendario 500 Internal Server Error 1.01s" "unknown web method parameter name methodname"* Here is the asmx.vb code: <System.Web.Script.Services.ScriptService()> _ <System.Web.Services.WebService(Namespace:=

FullCalendar auto-height in week view

♀尐吖头ヾ 提交于 2019-12-09 02:29:43
问题 I need to have a calendar in week mode which would take all the width it can take and take all the height it needs to not have scrollbars. If I keep default settings height: auto, aspectRation: 1.35 , I see a vertical scrollbar: If I change aspectRatio to 1, scrollbar disappears but I see a useless empty area at the bottom: Is there any way to fix it except guessing the aspectRatio (which is not a case for me as minTime and maxTime are dynamically changed so the conent height changes)? 回答1:

How to add jQuery if statement inside a set of plugin options?

删除回忆录丶 提交于 2019-12-08 18:40:29
I'm trying to get a calendar plugin (FullCalendar) to display a different number of days depending on whether the user is viewing the site on mobile, tablet, or desktop breakpoints. For this, I need the calendar to display a normal week on desktop and 3 days on mobile. Like normal plugins, you init the element and pass it some options. I've tried a couple of things so. The working code is as follows: $('#calendar').fullCalendar({ timeFormat:'h(:mm)a', header:{ left:'prev', center:'title', right:'next' }, height: 650, views: { basicThreeDay: { type: 'basic', duration: { days: 3 }, buttonText:

Can i adjust the height of the day view in FullCalendar?

瘦欲@ 提交于 2019-12-08 17:48:30
问题 I am trying to restyle a instance of FullCalendar so that the day and week views run the entire height of the web page. i.e. I do not want a scrollbar to view the entire day. I tried removing overflow and the fixed height but that doesn’t work. Is it possible to do this? 回答1: You can change the slotMinutes when creating the chart http://arshaw.com/fullcalendar/docs/agenda/slotMinutes/ and then you can adjust the content height to fit it all in there with this http://arshaw.com/fullcalendar

fullcalendar - display half-day event in the month view

徘徊边缘 提交于 2019-12-08 16:51:54
问题 How do you display a half-day event in the month view? For instance, I have an event that is 12 hours long. I would like the date cell for that event to only show a half bar. Is that possible? If so, how do you implement this? 回答1: So the events are positioned "absolute", this is a tricky one ..... Use of the eventAfterRender callback like this : , eventAfterRender: function(event, element, view) { /** * get the width of first day slot in calendar table * next to event container div */ var

FullCalendar - list view multi-day events not grouping correctly

[亡魂溺海] 提交于 2019-12-08 16:47:56
I'm trying to set a FullCalendar with Month, Week, Day and List view options, and this is working fine for almost evrything, as you can see here: But, in the ListView, the first event that's a multi-day event isn't grouping with other evento between it start and end dates: I'm trying to use the code below that I get from this issue's answer: fullCalendar multi-day event start and end times (I haven't enough reputation to answer or comment there, so I'm creating this new one) events.push({ title: "Birmingham Comic Con", start: new Date('2016-11-20T09:00'), end: new Date('2016-11-22T19:00'), id:

Full calendar not showing inside bootstrap modal

僤鯓⒐⒋嵵緔 提交于 2019-12-08 16:37:38
问题 I want to load a modal dialog using bootstrap modal. Inside of it i want to show a fullcalendar (the jquery one) with some events on it. I have created my modal, and put inside the full calendar. But Full calendar won't show when modal appears. But it shows when after the modal has appeared i press on either next or previous buttons. But then no event appears on the calendar.jsfiddle here and code <a href="#myModal" role="button" class="btn btn-default" data-toggle="modal">Launch demo modal<

'show' event doesn't fire in IE9 using Twitter Bootstrap Modal in Rails

百般思念 提交于 2019-12-08 15:58:46
问题 I have an issue involving a couple of different frameworks/libs although the main ones being Twitter Bootstrap(js) and Rails. I have a link in my app that responds with some js: $(function() { var $modal = $('<%= escape_javascript( render 'front_end/bookings/modal', :product => @product, :customer => @customer, :booking => @booking ) %>'), $calendar = $modal.find('#calendar'), currentProduct = <%= raw(@product.to_json) %>;, initBookingCalendar; $('body').append($modal); $modal.modal('show');