fullcalendar

yii2 Fullcalendar - Why is alert for CalEvent working but not for updating innerHtml?

微笑、不失礼 提交于 2020-01-05 04:54:51
问题 I am using philippfrenzel/yii2fullcalendar and I want to show the event description. when I am using the code: <script> var JSEventClick = (function(calEvent, jsEvent, view) { // document.getElementsByClassName('.fc-title').innerHtml += 'calEvent.nonstandard.field1' ; alert(calEvent.title + ' -- ' + calEvent.nonstandard.field1); }); </script> it is working fine. but when I am using: <script> var JSEventClick = (function(calEvent, jsEvent, view) { document.getElementsByClassName('.fc-title')

eventMouseOver fullCalendar Angular 6 doesn't work

≡放荡痞女 提交于 2020-01-05 04:17:33
问题 I am using full-calendar version : 3.6.1 in angular 6 and I want to display a popOver when the mouseOver an event The problem that when I add (eventMouseOver) in component.html nothing is happin This is my code for calendar.component.ts import {Component, ElementRef, OnInit, ViewChild} from '@angular/core'; import {CalendarComponent} from 'ng-fullcalendar'; import { Options } from 'fullcalendar'; import {CompanyService} from '../company/company.service'; import {Person} from '../person';

Issue loading events Fullcalendar.io

别等时光非礼了梦想. 提交于 2020-01-05 04:17:09
问题 We are using fullcalendar.io and we want to get an event from our api controller. Our Controller [Route("api/Bookings")] public class BookingApiController { // GET [HttpGet] public string Get() { var returnJson = new { events = new[] { new {title = "bro", start = "2018-05-06"}, new {title = "bro2", start = "2018-05-05"} } }; return JsonConvert.SerializeObject(returnJson); } } Our javascript file $(function () { $('#calendar').fullCalendar({ //weekends : false dayClick: function (date) {

FullCalendar - week view events display vertical order

百般思念 提交于 2020-01-05 04:13:07
问题 Is it possible to show the events one below the other like the image?i want view week with events vertical order sorry my English is not perfet 回答1: No, it is not possible without editing the source code of fullcalendar. The best you can do is set eventOverlap: false so that users at least cannot drag and drop the events to have the same time. You can also try fullcalendar's scheduler plugin which will do almost the same. Search the documentation for vertical resources layout. 来源: https:/

Using month view, move week by week instead of month by month

一笑奈何 提交于 2020-01-05 03:03:08
问题 I am using FullCalendar v2.2.5 and I would like to navigate week by week instead of month by month when the calendar is using the month view . I see that the function used to navigate forward is this but I wasn't able to figure a way to change this behaviour. Is there any way to accomplish this? 回答1: By default, as stated on prev and next documentation: If the calendar is in month view, will move the calendar back/forward one month. If the calendar is in basicWeek or agendaWeek, will move the

How to add close button to the event block in Fullcalendar

半城伤御伤魂 提交于 2020-01-04 23:06:29
问题 I need to add 'close' button to the event which would remove it from the calendar. As 'text' field doesn't accept HTML, I can't do this directly. What is the best way to modify event HTML ? 回答1: Adding a trash icon from Bootstrap-3 eventRender: function(event, element) { element.html(event.title + '<span class="removeEvent glyphicon glyphicon-trash pull-right" id="Delete"></span>'); } The event can be captured in the "eventClick": eventClick: function(calEvent, jsEvent, view) { if (jsEvent

How to add close button to the event block in Fullcalendar

时光怂恿深爱的人放手 提交于 2020-01-04 23:06:04
问题 I need to add 'close' button to the event which would remove it from the calendar. As 'text' field doesn't accept HTML, I can't do this directly. What is the best way to modify event HTML ? 回答1: Adding a trash icon from Bootstrap-3 eventRender: function(event, element) { element.html(event.title + '<span class="removeEvent glyphicon glyphicon-trash pull-right" id="Delete"></span>'); } The event can be captured in the "eventClick": eventClick: function(calEvent, jsEvent, view) { if (jsEvent

How can I retrieve JSONdata from ASP.NET and send it to jQuery? (implementing FullCalendar)

感情迁移 提交于 2020-01-04 09:26:48
问题 I'm trying to get JSON-data into a jQuery variable using ASP.NET (not MVC): $(document).ready(function () { $('#calendar').fullCalendar({ events: GetEvents(start, end) //This line is invalid } } In MVC, it could just be events: "/Calendar/GetEvents/" , which would call the CalendarController's GetEvents()-method. But since I'm not using MVC I started following this guide to try calling server-side methods from the client. In the second step it tells me that I have to create a static method in

Full calendar 3 days agenda custom view

元气小坏坏 提交于 2020-01-04 07:20:02
问题 is there a way to make a custom view based on agendaDay but restrain to 3 days, and the action on next or previous button, move 3 days on 3 days ? the first day always reference to moment().day() thanks for your help 回答1: This can now be done with something like this: views: { agendaThreeDay: { type: 'agenda', duration: { days: 3 }, buttonText: '3 day' }, defaultView: 'agendaThreeDay' } You can get more information on this from the document page on Custom Views. 来源: https://stackoverflow.com

Full calendar 3 days agenda custom view

跟風遠走 提交于 2020-01-04 07:19:22
问题 is there a way to make a custom view based on agendaDay but restrain to 3 days, and the action on next or previous button, move 3 days on 3 days ? the first day always reference to moment().day() thanks for your help 回答1: This can now be done with something like this: views: { agendaThreeDay: { type: 'agenda', duration: { days: 3 }, buttonText: '3 day' }, defaultView: 'agendaThreeDay' } You can get more information on this from the document page on Custom Views. 来源: https://stackoverflow.com