DayPilot.Event.text

Returns the current event text or sets a new value.

Declaration

text()
text(newText)

The new value is applied when you call dp.events.update(e) [e.g. DayPilot.Scheduler.events.update()].

Parameters

  • newText (string) - new event text 

Note

When setting a new text value it automatically updates event HTML. See also DayPilot.Event.client.innerHTML().

Return Value

If called without parameter, it returns an event text (string).

Example

var oldText = e.text();
e.text("New text");

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java