-
Notifications
You must be signed in to change notification settings - Fork 241
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels