CroudTech / vue-fullcalendar

FullCalendar Wrapper for vue
MIT License
483 stars 100 forks source link

Problems about events request for different events types #150

Closed DivingPigy closed 6 years ago

DivingPigy commented 6 years ago

Hi! I used to solve the problem two weeks ago to reload event according to calendar-view change by "this.$refs.calendar.fireMethods('refetchEvents')". Now, the it is required to load events by condition outside the calendar. For example, reload events according to checkbox in parent component. I did this: <checkbox v-model="type.task" @change="eventReload"> eventReload(){ if(type.task){ this.$refs.calendar.fireMethod("refetchEvents"); } // some logic }

Now, I have one question: If I click the the nav-links, is there some mechanism for reloading events according to the checkbox condition?

DivingPigy commented 6 years ago

I use json-feed, but can't access the data-member in data domain.

DivingPigy commented 6 years ago

Checkbox event can be easily to control the logic, nav-link can not attached to my logic.

DivingPigy commented 6 years ago

To config events for nav-links? default

BrockReece commented 6 years ago

What does your event fetching logic look like?

DivingPigy commented 6 years ago

Process according to condition. However, there should be a flag in your data element. For example, a property in your json object to help you to justify whether to process or skip the process. My logic as bellow:

default

Then, it work well for me!

Thank you for your kindly help!

DivingPigy commented 6 years ago

@BrockReece Sorry to forget @you

BrockReece commented 6 years ago

And what is not working in that logic?