setUserData
Description
Устанавливает пользовательские данные, связанные с указанным событием
setUserData: (id: string, name: string, value: any) => void
Parameters
id- (required) string - идентификатор событияname- (required) string - имя пользовательских данныхvalue- (required) any - значение пользовательских данных
Example
const eventId = scheduler.addEvent({
start_date: "16-06-2027 09:00",
end_date: "16-06-2027 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.