Closed Vintgar closed 3 years ago
Just add the code to do that inside the blocks. It gives you the array of events for the day so you can use that to count.
On Thu, Oct 1, 2020 at 9:43 AM Quentin notifications@github.com wrote:
Hi Chris,
As google calendar do, I wanted to implement a way to display only 4 events by day. And if there is more, i display a link like "2 more events" which trigger a modal. And in this modal i want to focus on 1 specific day and display all the events of that day (more than just 4 events, 6 in my example)
[image: Capture d’écran 2020-10-01 à 15 29 00] https://user-images.githubusercontent.com/12699639/94815871-50ab2480-03fb-11eb-8e65-9be7233aad8a.png
I thought i could use a partial to do that, but i don't really know how to pass all the events of a specific day on this partial. Do you know how I can do that?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/excid3/simple_calendar/issues/244, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAQMFMUCNXACQNHLID2PDDSISBRLANCNFSM4SAOLW7A .
-- Chris Oliver http://excid3.com | @excid3 http://twitter.com/excid3 | http://github.com/excid3
Not sure to understand what you said.
I do succeed to count the number of events. What i don't success to achieve is to trigger a modal on a specific day and include in it all the events of this day.
I can share you my code to display events on the calendar if you want?
Hi Chris,
As google calendar do, I wanted to implement a way to display only 4 events by day. And if there is more, i display a link like "2 more events" which trigger a modal. And in this modal i want to focus on 1 specific day and display all the events of that day (more than just 4 events, 6 in my example)
I thought i could use a partial to do that, but i don't really know how to pass all the events of a specific day on this partial. Do you know how I can do that?