setEventText

sets the event's text

void setEventText(string id,string text);

Deprecated

instead of it, you can use

//to set new end date
scheduler.getEvent(id).text = "New text";
//to update visible event's box after it
scheduler.updateEvent(id);
idstringthe event's id
textstringthe new text of the event

Example

var eventId = scheduler.addEvent({
    start_date: new Date(2013,1,10),
    end_date:   new Date(2013,1,13),
    text:   "Conference"
});
...
scheduler.getEvent(eventId).text = "Meeting";
scheduler.updateEvent(eventId);

See also
Back to top