fullcalendar

How do I get FullCalendar to display information from my JSON feed?

只谈情不闲聊 提交于 2019-12-06 01:48:41
问题 I'm setting up an app using FullCalendar (http://arshaw.com/fullcalendar/) that will allow the user to see client scheduling information as well as schedule clients through a management interface. I want to use a MySQL database to populate an array, and then pass that array in the form of a JSON feed to FullCalendar on an HTML page. Ideally, then, the client information would show up on the HTML page. However, even though my JSON feed is being passed, there are no events on my FullCalendar.

Getting Angular UI Calendar to work with UI-Bootstrap Tooltips

烈酒焚心 提交于 2019-12-06 00:57:55
I am trying to display a tooltip on angular UI calendarEvent's mouse-hover. I managed to do this as explained in the following thread, Tooltip for fullcalendar in year view $scope.eventMouseover = function (calEvent, jsEvent) { var tooltip = '<div class="tooltipevent">' + calEvent.description + '</div>'; $("body").append(tooltip); $(this).mouseover(function (e) { $(this).css('z-index', 10000); $('.tooltipevent').fadeIn('500'); $('.tooltipevent').fadeTo('10', 1.9); }).mousemove(function (e) { $('.tooltipevent').css('top', e.pageY + 10); $('.tooltipevent').css('left', e.pageX + 20); }); } $scope

FullCalendar - Highlight a particular day in week view

懵懂的女人 提交于 2019-12-06 00:15:54
I am newly working on FullCalendar . Following this thread I am able to go to a specific date when selected from a datepicker on my page. I am displaying FullCalendar in week view. My problem here is, in week view I am not able to apply the fc-state-highlight class on the date I have gone to. Even though the week has my required date, it is never highlighted. However, I am able to remove the same class from the current date by using $('.fc-today').removeClass('fc-state-highlight'); I need to add the above class to my gone-to-date. Any help would be greatly appreciated. EDIT: I have posted the

Fullcalendar - save events in database

亡梦爱人 提交于 2019-12-05 23:41:21
I have the following markup: I have a instance of fullcalendar. When clicking on a day (triggering the dayClick -callback), a bootstrap modal is opened, where the user can enter a title, and the start/end date. Once clicking on ok, those values provided, will be added to the calendar. Here's the code for that: function addTitle(){ //having a button onClick="addTitle()" var title = $('#add_date_title').val(); var startdate = $('#add_date_startdate').val(); var enddate = $('#add_date_enddate').val(); var end_split = enddate.split('-'); end_split[2]= parseInt(end_split[2])+parseInt("1"); enddate

How to add angular directive to full calendar event

佐手、 提交于 2019-12-05 22:04:56
I'm using Angular-UI Calendar (angular version of Arshaw's fullcalendar) and on EventRender I would like to add a Angular-UI-bootstrap popover to the event element. I have tried these (using coffeescript): eventRender: (event, element) -> element.find(".fc-event-inner").wrap("<div popover='I appeared on mouse enter!' popover-title='The title.' popover-trigger='mouseenter'></div>") and eventRender: (event, element) -> element.find(".fc-event-inner").wrap($compile("<div popover='I appeared on mouse enter!' popover-title='The title.' popover-trigger='mouseenter'></div>")($scope)) $scope.$apply()

Fetch event details (title, start and end) from database for fullcalendar

雨燕双飞 提交于 2019-12-05 21:55:09
I have really searched a lot about this, but I still haven't gotten through with my problem. I am creating a calendar (using the plugin fullcalendar and using codeigniter as the backend) that would display a tour and it's specific time span. So, in this case the title of the event would be the tour name, and for the duration of the tour, the start and end dates is to be fetched. I have already succeeded with the insertion of the data to the database, it's just that the events are not appearing on their respective dates. These are what I have coded so far: Controller: Calendar.php function view

Skipping weekends and splitting days with an event block of 3 days using fullcalendar

南楼画角 提交于 2019-12-05 20:46:09
问题 I have a question relating to the plugin called "fullcalendar" that can be viewed here https://fullcalendar.io/docs/event-data What I would like to achieve is a modification to my current script located below on my jsfiddle link. Which is to create a event split block when the external event is dragged and dropped near for example Friday, the event block of 3 days would split and would skip saturday and sunday and place the rest of the event block on Monday and Tuesday instead. My script

Change default event sort order on FullCalendar month View

时光怂恿深爱的人放手 提交于 2019-12-05 18:25:51
I have a fullcalendar working with multiple calendars displayed in the month view. The different calendars are color coded. I have the calendars sorted by name on all views, but when they are rendered in the FullCalendar display they are sorted by title of the event. Is there anyway to override the default sort for the day? If you want to completely override the sorting by start date for allDaySlot, month, basics views. For example to sort them by color. 1.Initialise eventOrder to color. (html/php file you are using) eventOrder: 'color,start' 2.Change the compareSegs function. (fullcalendar.js

How to set the current day color in FullCalendar?

穿精又带淫゛_ 提交于 2019-12-05 18:07:42
问题 I would like to change the color of the current day but only when the calendar is in the day agenda view. My users say they're having a hard time seeing the lines or something. I looked through the documentation as well as the css/js and didn't find a quick way of doing it. Is this even possible without major code changes? 回答1: I honestly don't really know what you're talking about, but the jQuery UI fullcalendar widget uses the CSS class .fc-today to style the current day. If your changes

javascript functions available via javascript_include_tag but not asset pipeline and application.js

拈花ヽ惹草 提交于 2019-12-05 18:07:16
My apologies if this has been posted somewhere else, but I'm not exactly sure how to even phrase a search for this problem. Basically, I've got fullcalendar.js sitting in app/assets/javascripts/ . Within my application.js file (in the same folder of course) I've got the following... //= require jquery //= require jquery_ujs //= require foundation //= require_tree . So, as expected the fullcalender.js gets swept up in the asset compiling process and ends up in the application.js that is then served to the user. The problem comes in when I try to reference a function defined in fullcalendar.js