SVMBrown / ajenda

A Reagent Wrapper for Full Calendar
Eclipse Public License 1.0
1 stars 1 forks source link

Any suggestion event filtering with external input? #10

Open dpmontero opened 5 years ago

dpmontero commented 5 years ago

Any suggestion to event filtering from external input or a select? rerenderEvents?

yogthos commented 5 years ago

The API functions in Fullcalendar require an instance of the calendar to be available, however the library returns a Reagent component when the calendar is instantiated. The current workaround would be to give the calendar an id attribute by passing an :id key in the opts. Then you can get the underlying Fullcalendar object as follows: (.fullCalendar ($ "calendar-id")).

For this specific use case it would be possible to use the refetchEvents API call.