Перейти к основному содержимому

getUserData

Description

Получает данные пользователя, связанные с указанным событием

getUserData: (id: string, name: string) => any

Parameters

  • id - (required) string - идентификатор события
  • name - (required) string - имя данных пользователя

Returns

  • value - (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.getUserData(eventId, "holder");// ->"John"
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.