Returns the current event text or sets a new value.
text() text(newText)
The new value is applied when you call dp.events.update(e) [e.g. DayPilot.Scheduler.events.update()].
When setting a new text value it automatically updates event HTML. See also DayPilot.Event.client.innerHTML().
Since version 2020.4.4701, strings set using the text() method is automatically HTML-encoded to prevent XSS attacks. To set raw HTML, use client.html() or modify data.html (see DayPilot.Event.data).
If called without parameter, it returns an event text (string).
var oldText = e.text(); e.text("New text");