Closed tspesh closed 5 years ago
Hey, I would suggest looking at this example in the readme.
It uses the fullcalendar's events (as a function) where you can access the current date range as the first two arguments of the callback.
Hope that helps
Thanks, so I saw that...but I'm not sure I understand it fully.
I need to pass the visible month back to my API. How does this method do this? In my experimentation, i'm not able to pass any useful data to that events function.
AH CRAP!
I wasn't paying attention completely...
What I needed
<full-calendar :event-sources="eventSources"></full-calendar>
vs
What I had
<full-calendar :events="eventSources"></full-calendar>
Not really an issue, so sorry but not sure where else to ask this.
I have a data structure that contains events that go back 3+ years and into the future at least a year. This means thousands of records. It would be vastly more efficient to make an API call for the current month's data only. But I do not see a way to capture and then send the current month/year to make that request.
FullCalendar has the getDate method. How would I go about accessing that data in my component?