Closed DivingPigy closed 6 years ago
I use json-feed, but can't access the data-member in data domain.
Checkbox event can be easily to control the logic, nav-link can not attached to my logic.
To config events for nav-links?
What does your event fetching logic look like?
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:
Then, it work well for me!
Thank you for your kindly help!
@BrockReece Sorry to forget @you
And what is not working in that logic?
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?