setUserData
Description
将用户数据分配给特定事件
setUserData: (id: string, name: string, value: any) => void
Parameters
id- (required) string - 事件的唯一标识符name- (required) string - 用户数据的键value- (required) any - 与用户数据键关联的值
Example
var eventId = scheduler.addEvent({
start_date: "16-06-2013 09:00",
end_date: "16-06-2013 12:00",
text: "Meeting"
});
scheduler.setUserData(eventId, "holder", "John");
scheduler.setUserData(eventId, "room", 5);
Related API
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.