react-big-calendar

react-big-calendar navigate to specific day

China☆狼群 提交于 2019-12-11 05:22:18
问题 it might be silly question to ask but trust me I am new to react . Actually , current React-big-calendar support navigate to specific date which are selected from Month view . I want same thing when user click on day from Month view I want to navigate user to specific day . please help me Code <MyCalendar popup selectable timeslots={1} localizer={localizer} view={this.state.viewing} views={[this.state.viewing]} components={{ toolbar: CustomToolbar }} style={{ height: 600 }} startAccessor=

add popover when event is clicked in react-big-calendar?

最后都变了- 提交于 2019-12-04 10:37:46
I'm having trouble adding a popover to an event when it is clicked. the popover seems to show up only in the event slot, not on top of the event slot. additionally, since i created a custom component for the events and tried to implement the popover in the custom component, the popover only shows up whenever i click the name of the event. Here is the code: class CustomEvent extends React.Component { constructor(props){ super(props) } render(){ console.log(this.props); let popoverClickRootClose = ( <Popover id="popover-trigger-click-root-close" style={{zIndex:10000}}> <strong>Holy guacamole!<

How to send the date state of calendar to another calendar with Reactjs?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 09:09:36
问题 I have two calendars, such as the Agenda, have an icon calendar button, when I click on it, it will be redirected to another calendar (Planning) , these calendars are developed with react-big-calendar, I want when I navigate for example on the week of juin 17 - 23 of Agenda and I click on the icon calendar, it will be redirected to juin 17 - 23 of the Planning. My code is : https://codesandbox.io/s/m7k904y3o8 I try to send the date with getWeek() , but it doesn't work. How can I fix it ? 回答1:

How to send the date state of calendar to another calendar with Reactjs?

一笑奈何 提交于 2019-12-02 04:48:47
I have two calendars, such as the Agenda, have an icon calendar button, when I click on it, it will be redirected to another calendar (Planning) , these calendars are developed with react-big-calendar , I want when I navigate for example on the week of juin 17 - 23 of Agenda and I click on the icon calendar, it will be redirected to juin 17 - 23 of the Planning. My code is : https://codesandbox.io/s/m7k904y3o8 I try to send the date with getWeek() , but it doesn't work. How can I fix it ? You can add additional data to this.props.history.push which will then be available in the location prop