search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to wrap the text within the event if we have long text?

Asked by pushplata
7 days ago.


i'm trying to create an event with long text data and i have to wrap the text within that event.i'm trying to give css within onBeforeCellRender but its not working.plz help me for this issue.

Answer posted by Dan Letecky [DayPilot]
7 days ago.

You can enable text wrapping using the "eventTextWrappingEnabled" property:

You can also use HTML line breaks (<br>) in the event HTML. Just remember that in that case you need to HTML-encode the text to prevent XSS attacks.

Comment posted by pushplata
6 days ago.

Under which event call we should keep "eventTextWrappingEnabled" property ?
so that after event creation it will reflect on event

Comment posted by Dan Letecky [DayPilot]
6 days ago.

This is a property of DayPilot.Scheduler. It needs to be set before events are rendered. You can initialize it when creating the DayPilot.Scheduler object:

const scheduler = new DayPilot.Scheduler("dp", {
  eventTextWrappingEnabled: true,
  // ...
New Reply
This reply is
Your name (optional):