I'm trying to get events from my API but i have next problems:
If i use Store. i have CORS problem (If i do this request with JS fetch i can do without any problem.
And i don't know how can i send params to that request like date selected on calendar, month that is showing or some custom params.
const calendarConfig = reactive({ ...calendarConfigBase, ...calendarConfigExtend })
const calendarStore = new AjaxStore({
readUrl: 'https://xxxx/api/events',
autoLoad: true,
headers: { Authorization: `Bearer ${token?.value}` },
})
const calendarGrid = new Grid({
store: calendarStore,
})
If i don't use Store, i can get events data with JS fetch request, but i need how can inject data on VUE 3 calendar and how can get the selected date or current month on calendar. Maybe i can subscribe to some events to get that info?
Thanks in advance