antoniandre / vue-cal

A Vue 2 & 3 full calendar, no dependency, no BS. :metal:
https://antoniandre.github.io/vue-cal
MIT License
1.2k stars 230 forks source link

Issue plotting Events with its sub events. #533

Open zagriaum opened 1 year ago

zagriaum commented 1 year ago

I am facing issue that I am having one main event with date range and inside it has multiple sub-events that has their own date range but falls inside Main Event Date Range. I want to plot Main event along with its sub-events that falls in their respective date. For Example Lets Say I have one event name as Event-XYZ which has its date range from 2023-03-10 to 2023-05-10. And its has multiple sub-events as mention below: Sub-event 1- 2023-03-15 to 2023-03-20 Sub-event 2- 2023-03-12 to 2023-03-20 Sub-event 1- 2023-03-15 to 2023-04-20

Now I want to plot this type of Main event along with its sub-event(In what date it falls).

Json looks like this events: [ { title: 'Event 1', start: '2023-05-10T09:00:00', end: '2023-05-30T12:00:00', subEvents: [ { title: 'Sub Event 1', start: '2023-05-12T10:00:00', end: '2023-05-20T11:00:00' }, { title: 'Sub Event 2', start: '2023-05-15T11:00:00', end: '2023-05-25T12:00:00' } ] }, { title: 'Event 2', start: '2023-05-11T09:00:00', end: '2023-05-11T12:00:00' } ]