We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Vuex store data

I want add events that loaded from Google Firebase. All data fetched to vuex store and I can't find info how I can include events from vuex store getter to Schedule
Does someone solved this problem already?

2 Replies

VI Victor June 28, 2019 06:03 AM UTC

I included firebase vuex store data to schedule,
I have "events" getter and assign watch method on this getter.

data () {
return {
eventSettings: {}
watch: {
events: {
immediate: true,
deep: true,
handler (newValue) {
this.eventSettings = {
dataSource: newValue

But it's schedule not updated when new data is appears.

VD Vinitha Devi Murugan Syncfusion Team July 1, 2019 12:18 PM UTC

Hi Victor, 
Greetings from Syncfusion. 
We suggest you to use the below code to assign the datasource to the scheduler for the same we have prepared the below sample for your reference. 
let scheduleObj = document.querySelector('.e-schedule').ej2_instances[0]; 
scheduleObj.eventSettings.dataSource = data; 
Kindly use the above suggested way and let us know, if it resolves your problem and also, if you need any further assistance on this. 
M.Vinitha devi. 

Live Chat Icon For mobile
Up arrow icon