fullcalendar

Laravel Collection push() not properly working

♀尐吖头ヾ 提交于 2019-12-24 09:57:59
问题 I am trying to duplicate an item in a collection based on the date range. For example, I have a JSON of this: { "title": " 200", "start": "2017-12-20", "endx": "2017-12-25", "equipment": "Chairs", "quantity": 200 } Now I want to duplicate 6x because there are 6 days from 12-20 to 12-25. Like this: { "title": " 200", "start": "2017-12-20", "endx": "2017-12-20", "equipment": "Chairs", "quantity": 200 } { "title": " 200", "start": "2017-12-21", "endx": "2017-12-21", "equipment": "Chairs",

How to hide time-slots in “agendaWeek” View of FullCalendar/Primefaces <p:schedule>?

a 夏天 提交于 2019-12-24 09:19:11
问题 Is it possible to hide the time-slots in "agendaWeek" View? I'm using Primefaces <p:schedule> which based on the FullCalendar. I only add AllDay-Events to this specfic schedule, so my client decided to hide the time-slots. I hope there is a way. Best regards 回答1: not sure if that's what you mean but to hide the first column in schedule try this css selector (remove formID\3A if you got prependId = "false" in your form that contains the scheduler ) #formID\3A scheduleID th.fc-agenda-axis{

MVC Full Calendar doesn´t show the events

♀尐吖头ヾ 提交于 2019-12-24 08:48:23
问题 I am implementing a calendar and I have encountered some difficulties because I am learning JavaScript alone and I have not mastered yet. My problem is this: I can create the event and save it in the database, but the event and the color of it ... do not appear on the calendar ... can someone find out the solution or where is the problem? If possible ... to create events ... being the color of this event always in random color? View <div id="calender"></div> <div id="myModal" class="modal

update angular2-fullcalendar after ngAfterViewInit

早过忘川 提交于 2019-12-24 07:57:38
问题 Alright, this is something new and I haven't got it answered in any threads related to angular2-fullcalendar. I am able to compile what is said and written on this documentation of angular2-fullcalendar Problem occurs when i am trying to populate calendar with my events, after the view has been initialised. Scenario 1: View Loads Shows Calendar Events are displayed(hard-coded) Scenario 2: View Loads Shows Calendar getting records(from server) Asked angular2-fullcalender to update my view. No

Fullcalendar: Keep event properties after previous/next click

喜夏-厌秋 提交于 2019-12-24 06:35:49
问题 Goal: I am using Fullcalendar with the agendaWeek view. What I need to do is to click on a couple of events from a certain week (to change their color) and then click next to go to the following week and select a couple of other events. Problem: Whenever I click next the old events (form the week before) are losing their properties that I give to them. For example, I change their color and add a property of active (custom property to know which events are currently selected). Here's my code $

Check if date range is within another date range for fullcalendar.io display

守給你的承諾、 提交于 2019-12-24 05:11:22
问题 I'm implementing the server side code to fetch events for fullcalendar.io. There are two scenarios: Event has a start and end date Event has a start date, and it's set to all day Model: public Class CalendarEvent { public DateTimeOffset Start { get; set; } public DateTimeOffset? End { get; set; } public bool AllDay { get; set; } } When https://fullcalendar.io loads a view, it emits a date range, which is basically the days that can be seen on the calendar (i.e. 10/8/18 to 12/8/18) and I send

Xpages: Getting FullCalendar to work with a bootstrap theme

有些话、适合烂在心里 提交于 2019-12-24 01:58:05
问题 Per's answer was a big part of the solution. For completeness here is what I ended up having to do. First, I had to fix the AMD problem that Per mentioned. Then I had to modify my Xpage to make sure that the proper libraries were loaded in the proper order. Some of this was done with trial and error. I had to set the resource aggregation setting to true, but only for this design element. I do not understand why. Then I needed to add 2 js libraries and one css library. The moment library had

Filtering FullCalendar events with checkboxes (client-side with javascript)

社会主义新天地 提交于 2019-12-24 00:17:20
问题 I have a well working fullcalendar script that adds css-classes to events according to data attributes via eventRender . I now need to filter these specific attributes with checkboxes, but I have no idea at all how I should get this going! My script looks as follows: <script> $(document).ready(function() { $('#calendar').fullCalendar({ eventRender: function(calEvent, element, view) { if (calEvent.risk == "normal") { element.css('background-color', '#99FF99'); } if (calEvent.risk == "event") {

FullCalendar on loading > Uncaught TypeError: Cannot read property 'push' of undefined

你。 提交于 2019-12-23 19:08:21
问题 thanks for tyour assistance first of all. I'm simply loading FullCalendar (https://fullcalendar.io/) on my dev environemts but it doesn't seem to work. When I open the console on Chrome it gives me the following issue. Uncaught TypeError: Cannot read property 'push' of undefined at fullcalendar.min.js:6 at fullcalendar.min.js:6 at fullcalendar.min.js:6 I haven't even called/declared the script yet and this puzzles me. Code cut down to the essential below. Thank you <!DOCTYPE html> <html lang=

Changing the format of the day title in weekview

倖福魔咒の 提交于 2019-12-23 12:13:55
问题 How can I change the formatting of the date in Fullcalendar -> weekview. It now says: Sun 7/24 Mon 7/25 Tue 7/26 Wed 7/27 Thu 7/28 Fri 7/29 Sat 7/30 I want to switch month and day around so it says Sun 24/7 Mon 25/7 Tue 26/7 Wed 27/7 Thu 28/7 Fri 29/7 Sat 30/7 which is the way our users are used to in the country where I live/work. 回答1: I have found a solution: columnFormat: { month: 'ddd', week: 'ddd d/M', day: 'dddd d/M' }, 回答2: There is a mistake, the first character must be lowercase: c