StephenChou1017 / react-big-scheduler

A scheduler and resource planning component built for React and made for modern browsers (IE10+)
https://stephenchou1017.github.io/scheduler/#/
MIT License
759 stars 414 forks source link

How to update events title? #181

Open jannat412 opened 4 years ago

jannat412 commented 4 years ago

I am trying to update title of the events but there is no update methods on it.

I want to add this on schedulerData.js

updateEvent(event, newSlotId, newSlotName, newTitle, newStart, newEnd){ this._detachEvent(event); if(this.isEventPerspective) { event.groupId = newSlotId; event.groupName = newSlotName; } else event.resourceId = newSlotId; event.end = newEnd; event.start = newStart; event.title = newTitle; this._attachEvent(event); this._createRenderData(); }

aliehsan90 commented 4 years ago

You will have to update the required event and then call setEvents(events) function