Skip to content

how to set currentMonth on some button click #176

@orafoxinc

Description

@orafoxinc

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions