fullcalendar

Fullcalendar with Twitter Bootstrap Popover

有些话、适合烂在心里 提交于 2019-12-02 20:45:26
I am trying to get Fullcalendar working with twitter boostrap popovers. if I click an event, i want to show some details in the popover. So first added this lil snippet to Fullcalendar: eventClick: function(event, jsEvent, view) { $this = $(this); $this.popover({html:true,title:event.title,placement:'top'}).popover('show'); return false; }, But now I run into 2 problems: Fullcalendar is inside a div that has overflow:hidden or something, because the popover gets cut on the border of Fullcalendar. How do I fix that? Similar to problem 2 I would like to place the popover via a function on top,

Show week number in FullCalendar

情到浓时终转凉″ 提交于 2019-12-02 20:06:39
问题 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. 回答1: You can turn on week numbers in FullCalendar with this option: $("#calendar").fullCalendar({ weekNumbers: true });

How do I delete this event from FullCalendar?

淺唱寂寞╮ 提交于 2019-12-02 19:15:21
The calendar lets the user drag a timeslot onto the calendar, however I would like them to be able to remove it if they click on it. So in the eventClick I have this function: function (calEvent) { removeRequestedEvent($(this), calEvent); }, It just passes in the calendar event and the calendar itself. removeRequestedBooking: function (cal, calEvent) { if (!confirm("Delete?")) return; cal.fullCalendar("removeEvents", calEvent.id); cal.fullCalendar("rerenderEvents"); // Re-show draggable element $("#requests #" + calEvent.id).show(); } I've also tried using a filter, but a breakpoint on the

How to call events on clicking prev and next button?

*爱你&永不变心* 提交于 2019-12-02 18:59:17
In jQuery fullcalendar we have previous and next buttons. How can we call some events on click of these buttons? You couldsimply attach an event to the button: $('.fc-button-prev span').click(function(){ alert('prev is clicked, do something'); }); $('.fc-button-next span').click(function(){ alert('nextis clicked, do something'); }); Burak Ogutken The best way is: viewRender: function(view, element) { var b = $('#calendar').fullCalendar('getDate'); alert(b.format('L')); }, streak This worked for me: $('body').on('click', 'button.fc-prev-button', function() { //do something }); $('body').on(

full-calendar start date today

谁都会走 提交于 2019-12-02 18:39:45
问题 I am trying really hard to make full-calendar to start from today. What it does is it displays the full week when I do this:- $('#calendar').fullCalendar({ // Options }); $('#calendar').fullCalendar('gotoDate', currentDate); where currentDate is today. Refernce:- http://flickfootball.in/ click on calendar tab.. 回答1: FullCalendar depends on moment.js , so you can do: var today = moment().day(); $('#calendar').fullCalendar({ firstDay: today }); 回答2: <script> $('#calendar').fullCalendar({

HTML in title string of fullcalendar jquery plugin

我是研究僧i 提交于 2019-12-02 17:01:42
I think the fullcalendar jquery-plugin is a really great solution. However, I noticed the plugin escapes (htmlEscape) the title. But I need to format some strings in the title, for example bold text, colors, or small images. The solution with another plugin (for example qTip, like in the examples) will not work the right way for me. Is there anyway to format the title text? Giancarlo Gomez I did this instead as the other views use the same class but not spans and I forced in the title from the event rather than making an additional request for the text. eventRender: function (event, element) {

Programmatically selecting a period of time in Fullcalendar

百般思念 提交于 2019-12-02 16:29:19
问题 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. 回答1: So I've got your answer (I needed something very similar and stumbled across this when looking for help). We need to

fullCalendar multi-day event start and end times

只谈情不闲聊 提交于 2019-12-02 16:13:03
问题 Multiple day events rarely have one start and one end time. For example, Birmingham Comic Con may last for 3 days, but you can't turn up at 1 in the morning! It has separate start and end times for each of the three days the event runs. I haven't been able to find anything in the docs about multiple start and end times per event, has anyone else? Edit: How I've got this working, in case anyone sees this and is after the same functionality, is by adding 'eventlength' and 'firstend',

add birthday events into jQuery full calendar each year

送分小仙女□ 提交于 2019-12-02 15:22:01
问题 I'm trying to insert into jQuery full calendar event data, which in this case represents birthdays of users. I'm retrieving birthdays from MySQL database. Let's take a look at script php : if ($birthday_r = $connection->query("SELECT CONCAT(name,' ',surname),MONTH(birthday),DAY(birthday) FROM users")){ while ($birthday_row = $birthday_r->fetch_row()){ $birthday_array[] = array( 'title' => $birthday_row[0], 'start' => Date("Y") . "-" . $birthday_row[1] . "-" . $birthday_row[2] ); } $json =

Recurring Events in Calendar - Rails

怎甘沉沦 提交于 2019-12-02 14:02:00
I am searching for the best way to model recurring events. I am using fullcalendar to display events. But I guess recurring events are best handled on the rails backend. I already looked at other questions and existing example code but I didn't find anything which fits. It should behave similar like google calendar. So it should be possible to delete/modify single events of the recurring event series. But saving all events of the event series in the database seems inefficient. Also it should be possible to create single events without any recurrence. What would be a good model architecture? My