0

Is there any way to get the value of the selected month and year from big calendar(the one that is being currently displayed)? Also when I click on previous/next button in the month view, the value should also get updated so that I get the selected month. Thanks

Linda Paiste
  • 38,446
  • 6
  • 64
  • 102

1 Answers1

0

You can use onNavigate to get the value of the selected month and the year.

<BigCalendar
  selectable
  events={events}
  defaultView='week'
  defaultDate={this.state.selectedDay}
  onNavigate={() => { this.state.selectedDay }}
/>
Aadhit Shanmugam
  • 433
  • 1
  • 10
  • 23