2

Fullcalendar events can be intercepted by handlres which were passed into object's props:

<FullCalendar
    eventDrop={ this.handleInternalDrop }                     
/>

How to use Fullcalendar methods such as getEvents()? https://fullcalendar.io/docs/Calendar-getEvents

ADyson
  • 57,178
  • 14
  • 51
  • 63
VladR
  • 93
  • 8

1 Answers1

5

Here is an example of using getEvents() method:

export default class DemoApp extends React.Component {

  calendarRef = React.createRef()

  render() {
    return (
      <FullCalendar ref={this.calendarRef} />
    )
  }

  someMethod() {
    let calendarApi = this.calendarRef.current.getApi()
    calendarApi.getEvents()
  }

}
VladR
  • 93
  • 8