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

1 Answer 1

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()
  }

}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.