2016-11-15 76 views
1

我使用這個設置的反應大日曆開始時間大日曆反應

render() { 
    return (
    <div> 
    <BigCalendar 
     selectable 
     step={3} 
     timeslots={10} 
     events={eventsE} 
     defaultView='week' 
     onSelectEvent={event => this.onSelectEventDate(event)} 
     onSelectSlot={(slotInfo) => this.onSelectSlotDate(slotInfo) } 
    /> 
    </div> 
); 

我使用這個插件http://intljusticemission.github.io/react-big-calendar/examples/index.html

但啓動時間總是在12AM 我怎樣才能改變從早上8點開始......並且不要浪費時間。

在此先感謝 卡洛斯·維埃拉

回答

2

很久沒有answear。但你必須設置今天的日期狀態和使用後

min={new Date(this.state.today.getFullYear(), this.state.today.getMonth(), this.state.today.getDate(), 8)}