fullcalendar

Fullcalendar using resources as a function with select menu

我与影子孤独终老i 提交于 2019-12-13 03:09:54
问题 Using Fullcalendar 4, I am trying to show/hide my resources using a select menu. When the user selects one of the providers from a menu, I want to only show that one resourc's events. Above my fullcalendar I have my select menu: <select id="toggle_providers_calendar" class="form-control" > <option value="1" selected>Screech Powers</option> <option value="2">Slater</option> </select> I am gathering the resources I need using an ajax call on my included fullcalendar.php page. I am storing them

create event when click next month

﹥>﹥吖頭↗ 提交于 2019-12-13 03:04:37
问题 I'm using "fullcalendar" script - https://fullcalendar.io/ in order to display tours on calendar how do i use ajax in order to pull tours data from db about the current/next/previous month. I just need the code that get the choosen month date (by the user) and run the ajax <div id="calendar"></div> <script> $(document).ready(function() { var initialLocaleCode = 'en'; $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay,listMonth'

Additional fields and rows in FullCalendar V4

北战南征 提交于 2019-12-13 02:55:38
问题 I'm using the latest V4 version of FullCalendar and I can't seem to be able to add additional fields like description and notes in my case. I use the daygrid view and I would like two more fields to appear. I've tried multiple options from answers here (probably for previous versions) and from the docs, including modifying the main.js from the core folder itself, where the titleHtml and timeHtml are defined (as (core.htmlEscape(eventDef.title)). I managed to add the fields or better said divs

Add more fields/data to a FullCalendar day

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 02:48:08
问题 I am working on a web app using the FullCalendar JQuery plugin to display the absence/presence of workers each day in a company. I need to display several types (or fields) of information in each day. For example, I would like to display for each day: a Title (ex. "John is absent"), and Percentage(ex, "95% assistance"). And I would like this percentage to appear with a different format, on the bottom right corner of each day's box. As far as I've seen, the possible fields to describe an event

How to set the defaultView of fullCalendar in Meteor?

拜拜、爱过 提交于 2019-12-13 02:43:06
问题 I am using fullCalendar package to add calendar in my project. By default the view shows by months and I want to change it to weekly bases. From fullCalendar documentation, agendaWeekis what I am looking for. I tried the following (didn't work): $("#calendar").fullCalendar({ defaultView: 'agendaWeek' }); When I create button and add the following event to it: Template.appointments.events({ 'click #check': function(e, t) { e.preventDefault() // console.log(Requests.find({}).fetch()) $('

fullcalendar: call web service function when next or prev button is pressed

房东的猫 提交于 2019-12-13 02:37:51
问题 I want to load events of only one month at a time. At first, show the event of one month in one page and when next or prev button is pressed, show the event of that month from database via web service (C#). How can I achieve that? I also want to get data from one month only and I want to send the selected year, month value to the web service so it can send the data of only specific month. My current jquery code is: jQuery(document).ready(function () { $.ajax({ type: "POST", contentType:

formatTime with “h” instead of “:” as separator

孤人 提交于 2019-12-13 02:27:11
问题 In France, we use the following 24 hour format for time: 18h30. Therefore, I want to add the "h" char in the timeFormat option of FullCalendar 2. I found an older post here: formatTime with "h" instead of ":" as separator but the solution is apparently not working anymore with FullCalendar v2. Is there a way I could "escape" the "h" character in the timeFormat option ? 回答1: Fullcalendar uses Moment.js for date/times. Escaping Characters: To escape characters in format strings, you can wrap

fullCalendarjs method fullCalendar('clientEvents') returns duplicate events

我与影子孤独终老i 提交于 2019-12-13 00:52:51
问题 I am using fullcalendar.io I dynamically populate my calendar, by adding events via evenSources. Such as: $('.add-more-events').on('click', function(){ var myEventSourceUrl = // ... get the event source url somehow var eventSourceColor = // ... get the color for this source var eventSource = { type: 'GET', url: myEventSourceUrl, color: eventSourceColor }; $('.my-calendar').fullCalendar('addEventSource', eventSource); } Likewise, I dynamically un populate my calendar, by removing events via

FullCalendar doesn't display on live site

 ̄綄美尐妖づ 提交于 2019-12-12 23:51:07
问题 I'm having an issue with FullCalendar. So while working locally, my calendar displays perfectly however the second I upload it live, the calendar doesn't display. I have a few console issues that I have no clue how to resolve. Any and all help will be appreciated. Console errors: Failed to load resource: the server responded with a status of 403 (Forbidden) Uncaught ReferenceError: $ is not defined Uncaught ReferenceError: jQuery is not defined Failed to load resource: the server responded

agendaDay row time format in fullCalendar

倾然丶 夕夏残阳落幕 提交于 2019-12-12 21:58:26
问题 I am trying to set the time format in my calendar rows to appear as 1pm - 2pm, 2pm - 3pm, 3pm- 4pm, etc. I have tried the following: agenda: 'h:mm{ - h:mm}', axisFormat: 'h:mm{ - h:mm}', day: 'h:mm{ - h:mm}', axisFormat: 'h(:mm)tt', timeFormat: { agenda: 'h:mm{ - h:mm}' }, but none of the above, either alone or in combination seem to work for me. I initialize my calendar as below: $('#calendar').fullCalendar({ defaultView: 'agendaDay', allDaySlot: false, firstHour: 9, minTime: 9, maxTime: 19,