lcalendar的resourceTimeGridDay中获取

lcalendar的resourceTimeGridDay中获取

本文介绍了如何在Fullcalendar的resourceTimeGridDay中获取eventReceive上的资源ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将外部事件放入resourceTimeGridDay,但是在视图中找不到当前资源ID.资源ID在信息对象中的何处列出?

I am trying to drop an external event into a resourceTimeGridDay but can't find the current resource id in the view. Where in the info object is the resource id listed?

 eventReceive(info) {
      console.log("eventReceive:", info);
    }

推荐答案

问题已解决.

info.event.getResources()将返回资源数组.

info.event.getResources() will return an array of resources.

以下是解决方案: https://github.com/fullcalendar/fullcalendar/issues/5215#event-2936400933

这篇关于如何在Fullcalendar的resourceTimeGridDay中获取eventReceive上的资源ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 12:04