fullcalendar

Showing only ONE week (Opening hours, each week the same)

*爱你&永不变心* 提交于 2019-12-10 11:28:48
问题 I would like to know if it is possible to show only one week, to use this calendar for showing opening hours of a shop. So : - I don't want to show the day dates (only the day names) : OK - I don't want to colorize the current day : OK - I want the calendar display always the same week => I don't know how to do that... Have you got any idea ? Is it possible to do that ? Thanks a lot ! 回答1: If you use the "goToDate" method: gotoDate Moves the calendar to an arbitrary year/month/date.

why is there extra space between url-tagged events?

故事扮演 提交于 2019-12-10 11:22:53
问题 I have a fullcalander spacing bug that I can't get past. Here is what my calendar looks like when my data doesn't have links in it $ticketData[] = array( 'id' => $ticket->getId(), 'title' => $title, 'start' => $ticket->getArrival()->format('Y-m-d'), 'end' => $ticket->getDeparture()->format('Y-m-d'), ); Now when I add a URL: Has this weird bug happened to anyone else? I'm really lost as to what's going on. The only line I added was the url: $ticketData[] = array( 'id' => $ticket->getId(),

Skip Friday in Fullcalendar

自作多情 提交于 2019-12-10 11:18:32
问题 I want to hide Friday in full calendar. Suppose In Dubai Friday is holiday. So how can i hide Friday from full calendar 回答1: try this hack, either put it in your own css, or add to fullcalendar.css .fc-fri { display:none; } this assuming you already set weekends = true. But i dont know if this will mess up event rendering if you have things that extend through Friday... failing that, modify fullcalendar.js and look for "weekends", and an extra day to skipWeekend. 来源: https://stackoverflow.com

FullCalendar - displaying different info

让人想犯罪 __ 提交于 2019-12-10 11:02:13
问题 The question is: how to display (what to change inside code) to display different info in week view and in day view f.ex.: week view - time, title day view - time, title, description ect. and pro-forma: month view - time, title 回答1: In the global JS declare, var currentView; In the constructor of fullCalendar there is viewDisplay trigger, use this code. viewDisplay: function(view) { //This is very ugly way to change events on switch... but it works! //Every time you you use 'gotoDate' this

Multiple FullCalendars on a single page

折月煮酒 提交于 2019-12-10 04:39:07
问题 I want to add multiple FullCalendars (selectable) on same page for scheduling different kinds of events and save information in database but looking the demo/sample code it seems I can add only single calendar per page as it is rendered by the <div id='calendar'></div> . Can you plesae let me know if there is way to acheive this, so that when user schedules events on different calendars on same page then calendar source/id can be identified? 回答1: No, the fullcalendar is not rendered simply by

FullCalendar - What level of events rendering performance should I expect?

余生长醉 提交于 2019-12-10 03:34:25
问题 I am rendering 100 events in FullCalendar using $('#CalendarPlugin').fullCalendar('renderEvent', {} ); being called 100 times in a loop. The browser performance I'm seeing on my computer (Core2 6600 @ 2.4GHz with 4GB RAM) Chrome : 3 seconds Firefox : 6 seconds IE9 : 6 seconds Is this an expected level of performance? Is there a faster way to load and render events? Once they've been added to FullCalendar, moving between months and re-rendering it much faster. It's just the initial loading of

while adding events to Fullcalendar by external drag and drop, item doesn't get id

不羁岁月 提交于 2019-12-10 02:58:42
问题 I'm using FullCalendar's external drag and drop, with his code. http://arshaw.com/js/fullcalendar-1.5.2/demos/external-dragging.html drop: function(date, allDay) { // this function is called when something is dropped // retrieve the dropped element's stored Event Object var originalEventObject = $(this).data('eventObject'); // we need to copy it, so that multiple events don't have a reference to the same object var copiedEventObject = $.extend({}, originalEventObject); // assign it the date

fullCalendar multi-day event spans 1 day too short

夙愿已清 提交于 2019-12-10 00:53:37
问题 When users add an event to the calendar, they choose start: 2014-09-17 end: 2014-09-18. Simple enough, they expect the event to extend across both the 17th and 18th boxes on the calendar, but it only appears in Sept 17th, making it appear a 1-day event. In the events manager database 9-17 and 9-18 are entered correctly. I tried changing the nextDayThreshold option of the fullCalendar plugin, but the event still only spans across sept. 17th. I could add a day on the back end, but this causes

full calendar header options as drop down navigation

早过忘川 提交于 2019-12-10 00:08:17
问题 I have to put fullcalendar header options(i.e Day view, Week view and Monthly view) in a drop down menu. After selecting one of this option, it'll go to particular one. How can we customise this ? Any one have idea about how to do this ? Any help would be appreciated. 回答1: To get the drop down navigation, you need to make header as false and you have to pull navigation bar HTML code from browser and put in HTML file. You should call full calendar with those navigation bar classes and it'll

Fullcalendar: can it work with Google Calendars set to private?

随声附和 提交于 2019-12-09 22:44:13
问题 I’m working in a project in which I need to use the Google Calendar (or similar) to provide the calendar functionality. However, every time a task is added to the calendar I need it to be added to my own database too. Also, I may want to sort which data goes to each place. For example, I’m scheduling an activity for a certain day and time and with a certain title and description and this last parameter is stored only in my DB, whilst the other 3 are stored both in the Google Calendar back-end