Javascript 反应大日历导航到特定日期
问这个问题可能很愚蠢,但相信我,我是个新来的反应者。实际上,当前的Javascript 反应大日历导航到特定日期,javascript,reactjs,ecmascript-6,react-big-calendar,Javascript,Reactjs,Ecmascript 6,React Big Calendar,问这个问题可能很愚蠢,但相信我,我是个新来的反应者。实际上,当前的React big calendar支持导航到从月视图中选择的特定日期。当用户从月视图中单击“天”时,我希望看到相同的情况,我希望将用户导航到特定的日期。请帮帮我 代码 <MyCalendar popup selectable timeslots={1} localizer={localizer} view={this.state.viewing} vi
React big calendar
支持导航到从月视图中选择的特定日期。当用户从月视图中单击“天”时,我希望看到相同的情况,我希望将用户导航到特定的日期。请帮帮我
代码
<MyCalendar
popup
selectable
timeslots={1}
localizer={localizer}
view={this.state.viewing}
views={[this.state.viewing]}
components={{ toolbar: CustomToolbar }}
style={{ height: 600 }}
startAccessor="start"
endAccessor="end"
min={new Date(2019, 10, 0, 7, 0, 0)}
max={new Date(2019, 10, 0, 22, 0, 0)}
events={this.props.events}
eventPropGetter={this.eventStyleGetter}
onSelectEvent={slotInfo => this.onSelectEventHandler(slotInfo)}
onSelectSlot={slotInfo => this.onSelectEventSlotHandler(slotInfo)}
/>
this.onSelectEventHandler(slotInfo)}
onSelectSlot={slotInfo=>this.onSelectEventSlotHandler(slotInfo)}
/>
如果我正确理解了你的问题,他们已经可以这样做了。不是单击整个日期单元格(用于选择),而是单击单元格中的“日期”编号。这样做会自动将用户转换到该日期的“日”视图,除非您更改配置