Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 反应大日历导航到特定日期_Javascript_Reactjs_Ecmascript 6_React Big Calendar - Fatal编程技术网

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)}
/>

如果我正确理解了你的问题,他们已经可以这样做了。不是单击整个日期单元格(用于选择),而是单击单元格中的“日期”编号。这样做会自动将用户转换到该日期的“日”视图,除非您更改配置