fullcalendar

FullCalendar Remove External Event by ID

非 Y 不嫁゛ 提交于 2020-01-24 21:12:08
问题 I am using FullCalendar and jQuery UI to drag "Days Off" onto my calendar as background events. Since you cannot click on background events in FullCalendar, I am creating a list with my days off and a "Remove" button next to them with the event id as a data attribute. However, when I click on the Remove button, it does not remove the event, even though it has the proper ID. Please take a look at this jsFiddle: https://jsfiddle.net/aaroncadrian/odhL964L/ For the sake of showing you that the

Push array inside a calendar bootstrap array

狂风中的少年 提交于 2020-01-24 19:27:15
问题 I'm creating a calendar for leave of my writers. In this code, it is hardcoded and of course working var calendar = new Calendar(calendarEl, { plugins: [ 'bootstrap', 'interaction', 'dayGrid', 'timeGrid' ], header : { left : 'prev,next today', center: 'title', right : 'dayGridMonth,timeGridWeek,timeGridDay' }, //Random default events events : [ { title : 'All Souls Day', start : new Date(y, m, 2), backgroundColor: '#f56954', //red borderColor : '#f56954' //red }, ], editable : true, droppable

how to use locale in fullcalendar in angular 7

走远了吗. 提交于 2020-01-23 12:32:46
问题 I need to change the language of my calendar in the angular version 7. I have not found much documentation about this. The main thing is to change the language of the days that appear on the calendar. !-- begin snippet: js hide: false console: true babel: false --> import { Component, OnInit, ViewChild } from '@angular/core'; import { CalendarComponent } from 'ng-fullcalendar'; import { Options } from 'fullcalendar'; @Component({ selector: 'app-calendario', templateUrl: './calendario

how to use locale in fullcalendar in angular 7

牧云@^-^@ 提交于 2020-01-23 12:31:46
问题 I need to change the language of my calendar in the angular version 7. I have not found much documentation about this. The main thing is to change the language of the days that appear on the calendar. !-- begin snippet: js hide: false console: true babel: false --> import { Component, OnInit, ViewChild } from '@angular/core'; import { CalendarComponent } from 'ng-fullcalendar'; import { Options } from 'fullcalendar'; @Component({ selector: 'app-calendario', templateUrl: './calendario

FullCalendar: How to stop dragging custom events?

天涯浪子 提交于 2020-01-22 19:54:20
问题 Can anybody tell me how to stop dragging / resizing the events where event.id > 100 ? Only those events should be non draggable. Updated with Code Sample: eventRender: function(event, element) { if (event.id > 100) { event.disableDragging(); event.disableResizing(); } element.qtip({ content: GetEventToolTip(event), position: { corner: { tooltip: 'bottomLeft', target: 'topMiddle'} }, style: { border: { width: 1, radius: 5 }, padding: 5, textAlign: 'left', tip: false, name: event.iscustom ==

click event in jQuery and right mouse clicking

一曲冷凌霜 提交于 2020-01-22 14:32:09
问题 Does click trigger when right mouse button was clicked? I want to implement a right click kind of menu with full calendar, but it only has dayClick event, which I think is triggered only when left mouse button is clicked. I was thinking something like dayClick: function(date, allDay, jsEvent){ if (jsEvent.button === 1){ //show menu }else{ //do something with day } } but dayClick isn't triggered when right mouse is clicked....Any other ideas? 回答1: Try binding mousedown to each FullCalndar

fullcalendar doesn't show events

给你一囗甜甜゛ 提交于 2020-01-17 08:23:13
问题 i want to add some event to the fullcalendar. A webmethod in aspx generate a json to the js But i can't link the result of the web method with the full calendar, I just can add manuals events. the js : $(document).ready(function () { $('#btnInit').click(function () { var start = Date.parse($("#MainContent_dateD").text()); var end = Date.parse($("#MainContent_dateF").text()); var cle = $("#MainContent_HF_cleU").val(); $.ajax({ type: "POST", url: "ConsultationPlanning.aspx/getPlanning", data: '

FullCalendar: Detect if resize was on Start or on End.

China☆狼群 提交于 2020-01-17 06:15:28
问题 I'm using FullCalendar libraries to build a schedule. I have enabled editable attribute, so I can resize the events. I use this event listener to do what I want to do: eventResize: function(event,dayDelta,minuteDelta,allDay,revertFunc) { //Some code goes here } But I want to know if there is a way to detect if the resize took place at the Start date of the event, or at the End date? 回答1: This code is more efficently: eventResizeStart: function(event) { startDateOnStart = event.start.format();

PrimeNG schedule custom buttons

自作多情 提交于 2020-01-17 05:51:07
问题 Can use full calendar custom buttons in PrimeNG Schedule component? I've tried to use ElementRef by @ViewChild("calendar-id"), but I get p-shedule object type, without any fullCalendar methods. customButtons: { myCustomButton: { text: 'custom!', click: function() { alert('clicked the custom button!'); } } }, Custom buttons docs PrimeNG schedule docs 回答1: The best way to do it today is make your own buttons. It can be done with ElementRef of your calendar @ViewChild("calendar-id"). @ViewChild(

how to style dayMouseover in Fullcalender

梦想与她 提交于 2020-01-17 05:12:13
问题 I am using Fullcalender plugin in my Angular application. I want to change cell color when i mouse over a time slot (eg. 7.30am-8.00am) in AgendaWeek view.I want something like this: I have tried changing css : .fc-widget-content:hover { background: #adf4fa; } but it doesn't work for cell.It changes entire row color. 回答1: I don't think you can edit the background color of only one cell because the cells aren't actually cells but rows: <tr data-time="11:30:00" class="fc-minor"> <td class="fc