You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to change currentMonth of calendar on some button click.
is that something possible that, using ref, it can allow to set currentMonth properties on some button click? <Calendar ref='_Calendar' currentMonth={'2017-09-01'} scrollEnabled={false selectedDate={this.state.selectedDate} showControls={true} showEventIndicators={true} titleFormat={'MMMM YYYY'} weekStart={0} />
after that using below code, it's currentMonth can be set.
Hi,
I would like to change
currentMonth
of calendar on some button click.is that something possible that, using ref, it can allow to set currentMonth properties on some button click?
<Calendar ref='_Calendar' currentMonth={'2017-09-01'} scrollEnabled={false selectedDate={this.state.selectedDate} showControls={true} showEventIndicators={true} titleFormat={'MMMM YYYY'} weekStart={0} />
after that using below code, it's currentMonth can be set.
this.refs._Calendar.currentMonth = (date).format('YYYY-MM-DD');
Kindly advise
The text was updated successfully, but these errors were encountered: