how to avoid event overlapping on dates using fullcalendar?

时光总嘲笑我的痴心妄想 提交于 2020-05-14 11:16:22

问题


So in my case, I have 3 cases: C1: contain dates from 29 to 31 C2: contain dates from 1 to 3 and then 5 to 6 but not 4th C3: contain single date 4th

Now, what I am trying to achieve here is to display C2 event from 1 to 3 and 5 to 6 but its displaying on 4th date as well. However, it shouldn't display on 4th because it's part of other case (c3)

Following is the image:

My data is coming from database and that's the reason I have to display my start: 2020/04/1 and end: 2020/04/6 because of this it's selecting 4th date as well. Which is the issue for me.

My code:

id: "2",
                    title: 'C - 2',
                    start: '2020-04-01T12:00:00', 
                    description: 'case 2',
                    end: '2020-04-06T15:30:00',
                    className: "bg_green fa fa-edit",
                    //eventTextColor: "white",

                }

So how I can skip the 4th date here or may be group of dates as not part of this event? Thanks

来源:https://stackoverflow.com/questions/60983393/how-to-avoid-event-overlapping-on-dates-using-fullcalendar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!