[英]How do I edit events in "react-big-calendars"
I want a clickable functionality where on clicking over the events on the calendar I am allowed to edit the dates or the event title.我想要一个可点击的功能,在点击日历上的事件时,我可以编辑日期或事件标题。
Is it possible to do so with "react-big-calendar"?是否可以使用“react-big-calendar”来做到这一点? If not can you suggest some other packages which does?如果没有,你能推荐一些其他的包吗?
<Calendar
localizer={localizer}
events={allEvents}
startAccessor='start'
endAccessor='end'
views={['month']}
/>
onSelectEvent={handleEventSelection} this prop can help you track whenever any event is clicked onSelectEvent={handleEventSelection} 这个道具可以帮助你在任何事件被点击时进行跟踪
You can use this code.您可以使用此代码。
const handleEventSelection = (e) => {
console.log(e, "Event data");
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.