Is there a way to render recurring events? #126
Replies: 2 comments
-
Hello, this would be possible to implement, but I thought it could be better to let developers use abstracted logic outside. Currently not planning to add this, but I am not saying never to it. I think this would need also some performance tests to be sure it doesn't affect speed too much. For few events it is no problem, but for dozens or hundreds it might be quite expensive. I am using this great library https://github.com/jakubroztocil/rrule which is very easy to use and you can create clones from produced dates for repeated events. |
Beta Was this translation helpful? Give feedback.
-
rrule is helpful. I will try to see if thats enough to fit my requirements. thanks for sharing that link. I do agree with the performance aspect of this! cheers! |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I am having a use-case where I have a recurring timetable that I want to render in the calendar. I understand one way to achieve this is parse the events and duplicate them for each week for the whole month. But thats a little intensive as I will have to duplicate it for lets say the whole year.
Describe the solution you'd like
Just curious if you have thought about supporting a feature that takes in the "day" of the week and we display it on all occurrence of that day. Example: lets say I have an event marked with "Monday", so it shows up on all mondays without having to duplicate it in events array.
Describe alternatives you've considered
I have thought about processing the events array and creating duplicate entries for each week of the day but that works if the recurring event is only for a week or two, If lets say there is a timetable which runs for 6 months, I will have to now clone a single event into 24 events in the array. This can get out of hand if each day I have 5 events and they re-occur every week for 6 months.
I want to present this as a question, I am happy to accept a No for an answer.
Thanks for building this library.
Beta Was this translation helpful? Give feedback.
All reactions