fullcalendar

Angular material datepicker always open

梦想与她 提交于 2019-12-04 13:01:54
I would like to use the angular material datepicker as a widget to control an instance of fullCalendar. Is there a way to force it to stay alway open and in a particular div? I know how to do it easily with bootstrap or jqueryUI but I would not want to add an extra dependency to my project. Well, you can get that to work with some CSS, but the internal scroll position of the month scroller starts always at the top (1932). md-calendar is the internal directive that renders the datepicker, so just use that. <md-calendar class="fixed-calendar" ng-model="myDate"></md-calendar> And set the CSS to

ContextMenu integration with jQuery FullCalendar

江枫思渺然 提交于 2019-12-04 12:48:04
I'm using Adam Shaw's FullCalendar control along with jQuery. I would like to add a context menu to events and days. I was able to achieve so by using Martin Wendt's Context Menu control . My code for registering the menu on events looks like this: $('#calendar').fullCalendar({ // Other arguments eventRender: function (event, element) { var originalClass = element[0].className; element[0].className = originalClass + ' hasmenu'; }, dayRender: function (day, cell) { var originalClass = cell[0].className; cell[0].className = originalClass + ' hasmenu'; }); }); I'm essentially adding a class

Work time in fullcalendar [Solution]

亡梦爱人 提交于 2019-12-04 11:34:48
Full calendar have no included options to work-time feature (selecting first and last rows in agenda view for any day - where in example company is not working). I managed something like that: viewDisplay: function(view){ $.ajax({ url: 'index.php?r=calendar/Default/worktime', dataType: 'json', success: function(data){ if(view.name=='agendaWeek') selectWorkTime(data, 30, 0, 24, false); else if(view.name=='agendaDay') selectDayWorkTime(data, 30, 0, 24, view, false); } }); } Where index.php?r=calendar/Default/worktime is php file returning json. It looks like that: $arr = array( 'mon' => array('8

how to update an event in fullCalendar?

强颜欢笑 提交于 2019-12-04 11:28:28
问题 I want to update my json in fullcalendar, Here is what I am exactly trying to do. I have a JSON string which I am directly trying to feed in to the event objects in the full calendar. --> var JSON[ { "id": "1", // Optional "title": "Demo event", // Required "start": "2013-08-28 10:20:00", // Required "end": "2013-08-28 11:00:00", // Optional "allDay": false, // Optional "url": "http://google.com", // Optional, will not open because of browser-iframe security issues "className": "test-class",

Adding a class to past events using Fullcalendar with Google Calendar

我是研究僧i 提交于 2019-12-04 11:18:52
I would like to change the color of the past events, I guess I need to add a class to them but that is the problem, how I do that? it would be best to add the class to the "className" attribute of the event object http://arshaw.com/fullcalendar/docs/event_data/Event_Object/ As per FullCalendar v1.6.4 Style past events in css: .fc-past{background-color:red;} Style future events in css: .fc-future{background-color:red;} medinauta I did it (hard coding): Before rendering: var hoy = new Date;// get today's date hoy = parseInt((hoy.getTime()) / 1000); //get today date in unix When creating the html

Setting Custom hiddenDays in Full Calendar

和自甴很熟 提交于 2019-12-04 09:50:26
问题 We can hide particular days of week from fullcalendar by Setting hiddenDays property. i need to hide alternate saturdays of a month. is it possible in any way ? 回答1: You can use the dayRender callback function: This callback lets you modify day cells that are part of the month, basicWeek, and basicDay views. See Available Views. date is the native Date object for the given day. to check if the displayed is an odd saturday; to do so you can get the number of week of the date and check if it's

jQuery FullCalendar working on touch devices - but minor issue with events

本小妞迷上赌 提交于 2019-12-04 09:30:04
问题 http://page-test.co.uk/cal/ - FullCalendar demo I have set this up which is a basic jQuery FullCalendar setup with the relevant extras to allow support on touch devices. The included files in the linked page are all default ones. The demo works perfectly on non-touch devices, but touch devices struggle. Testing on an iPhone/iPad mainly (other touch devices do more or less exactly the same) once one item is dragged, another one can't be. So you can drag any item, but then the others are sort

How to use FullCalendar within Angular 2

大城市里の小女人 提交于 2019-12-04 09:29:43
问题 I'm fairly new to Angular 2 and are trying to get a grip of how to integrate Angular 2 with existing Javascript UI Framework libraries. Now I'm trying to play with the jQuery plugin http://fullcalendar.io Or actually I want to use the premium add-on called Scheduler. However I created a simple example in Plunker... Feel free to use it and enlighten me in how to make it display and also how to respond to clicking on specific events. https://plnkr.co/edit/eMK6Iy ...the component

jQuery fullcalendar: contextmenu

a 夏天 提交于 2019-12-04 08:44:45
问题 I want to use jQuery.contextMenu: http://abeautifulsite.net/blog/2008/09/jquery-context-menu-plugin In jQuery.fullcalendar when I right-click on an event how does it work? 回答1: i don't know the contextmenu plugin but i think you can bind it on the eventRender event of fullcalendar. I have the problem with dblClick on an event. This is a part of my solution: eventRender: function(event, element) { element.bind('dblclick', function() { dopbClickFunction(event,element); ....... 回答2: I'm solving

adding a click event to fullcalendar

妖精的绣舞 提交于 2019-12-04 08:35:55
问题 How can I add a click event on an event and pass the day and event time as a url variable to another page? When a user clicks on an event I want to pass the date and event time to another page for processing. 回答1: $('#calendar').fullCalendar({ eventClick: function(calEvent, jsEvent, view) { window.location = "http://www.domain.com?start=" + calEvent.start; } }); Look here for more info: http://arshaw.com/fullcalendar/docs/mouse/eventClick/ 回答2: callback for clicking date grid: dayClick: