当我添加一个新事件时,我在刷新事件时遇到问题。事件被插入到数据库中没有问题,但调用
this.$refs.calendar.$emit('refetch-events')
抛出以下错误:
[Vue warn]: Error in event handler for "refetch-events": "TypeError: $(...).fullCalendar is not a function"
下面是一些更多的代码,以进一步演示我正在尝试做的事情:
<template>
<div>
<full-cale
我希望从我的MySQL DB中检索我的事件,并将它发送到Vue组件,以便相应地在FullCalendar组件上显示事件。尽管它将我的事件数组填充为一个完整的HTML文档。
这是我的EventController
public function getEvents()
{
$getEvents = Event::query()->select('projectid','event_id','start_time','end_time','notes','taskid')->get(
嗨,我想在我的项目中使用完整的日历。我试着按照完整日历文档页面中所示的说明来做所有事情。
但我总是犯同样的错误:
ERROR in src/app/calendar/calendar.component.html:2:1 - error NG8001: 'full-calendar' is not a known element:
1. If 'full-calendar' is an Angular component, then verify that it is part of this module.
2. If 'full-calendar
我使用完整的日历角度文档创建了一个日历组件。当我试图调用诸如addEvent、Rerender、refetch等方法时,它会给我以下错误:this.calendarComp.render is not a function
尝试导入完整日历/角的FullCalendarComponent,但这甚至不包含fullcalendar.component.d.ts当前代码中的rerenderEvents、addevents等函数,如下所示:
CalendarComponent.ts
@ViewChild('calendar', { static: true }) calendarCom
我正在使用FullCalendar和Vue。我试图在触发refreshCal()之后重新加载事件,因此用refetchEvents在屏幕上呈现日历。,我必须使用主要组件:
日历:这是代码
<script>
import FullCalendar from '@fullcalendar/vue'
import timeGridPlugin from '@fullcalendar/timegrid'
import resourceTimelinePlugin from '@fullcalendar/resource-timeline&
使用jQuery,我们可以很容易地对viewRender进行DOM操作,这样我们就可以向现有的viewRender元素中添加额外的DOM/操作。
$('#calendar').fullcalendar({
customButtons: {
newButton: {
text: 'New Button', // if possible I want this to have an element ui datepicker component here
click: function() {