跳转到主要内容

updateEvent

Description

修改指定的事件

updateEvent: (id: string) => void

Parameters

  • id - (required) string - 事件的 id

Example

var eventId = scheduler.addEvent({
start_date: "16-06-2013 09:00",
end_date: "16-06-2013 12:00",
text: "Meeting"
});

scheduler.getEvent(eventId).text = "Conference"; // 更新事件的详情
scheduler.getEvent(id).start_date = new Date(); // 更改开始日期
scheduler.updateEvent(id); // 重新绘制更新后的事件
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.