vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
1.34k stars 114 forks source link

Support multiple layers of (auto) events #247

Open brease-colin opened 8 months ago

brease-colin commented 8 months ago

Now this library support regular events ('auto') and 'background'. For a current use case, we're looking for a calendar view that can display multiple layers of auto events. Meaning: if two events in layer 1 overlap, they'll render side by side and if two events in layer 2 overlap, they will as well, but if an event from layer 2 overlaps an event from layer 1, then the layer 2 event is rendered on top of the layer 1 event, both displayed in full width.

I understand this may be a very specific issue, but on the other hand, since you already support two layers, maybe it's not that big of a change?

vkurko commented 8 months ago

Hello. Now there are no two equal layers as you wrote. In fact, the placement algorithm does not work for background events.

I think "layers" is an interesting idea. I think that in theory this could be implemented in the future. But at this stage, unfortunately, I cannot give exact dates. I will leave this ticket open so that others interested can also check in.