setUserData

sets the user data associated with the specified event

void setUserData(string id,string name,any value);
idstringthe event's id
namestringthe user data name
valueanythe user data value

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);

See also
Back to top