2

In fullcalendar document , They give example for getting all events in javascript or jquery. But I could not find in vuejs(https://fullcalendar.io/docs/Calendar-getEvents)

Please any one give example of get all events in vuejs

vendeeshwaran Chandran
  • 1,383
  • 1
  • 13
  • 13

1 Answers1

2

I got the answer

use ref on component

<FullCalendar schedulerLicenseKey="GPL-My-Project-Is-Open-Source" :events="events" :businessHours="businessHours" ref="calendar" />

and add this on your method

let calendarApi = this.$refs.calendar.getApi();

console.log(calendarApi.getEvents())
ADyson
  • 57,178
  • 14
  • 51
  • 63
vendeeshwaran Chandran
  • 1,383
  • 1
  • 13
  • 13