[英]How to fetch data when click on prev and next button on fullcalendar in vue
I want to fetch calendar data from database to my Vue frontend, for that I have used fullcalendar API.我想从数据库中获取日历数据到我的 Vue 前端,为此我使用了 fullcalendar API。
I am able to fetch data of current week but when I click on next and previous week at time I stuck as not able to fetch the data.我能够获取本周的数据,但是当我点击下一周和上一周时,我卡住了,因为无法获取数据。
Please provide me some suggestion or reference, so I can go through it and implement.请给我一些建议或参考,以便我go通过它并实施。
I have used custom button in fullcalendar我在 fullcalendar 中使用了自定义按钮
https://fullcalendar.io/docs/customButtons https://fullcalendar.io/docs/customButtons
and referred below Stack Overflow link并在下面提到 Stack Overflow 链接
FullCalendar-vue + Typescript: Property 'getApi' does not exist FullCalendar-vue + Typescript:属性“getApi”不存在
And fetched the data from calendarApi
and used in axios as parameter.并从calendarApi
中获取数据并在 axios 中用作参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.