Home Unanswered Active Tags New Question

Event innerHTML when Printing

Dan,
The new print export function works great thanks.

But one problem I've found is that any html code added to the InnerHtml of an event just shows as text rather than rendered html.

example e.InnerHTML = "<span class='red'>ALERT</span> & e.InnerHTML
Asked by steve65 3 years ago.
Replies
Since it's too difficult to implement HTML rendering, you should adjust your InnerHTML depending on DayPilotCalendar.IsExport value (true during export).
I'm considering the following improvements for the future:
  1. adding a simplified HTML rendering (selected tags like <b>, <a>, <img>)
  2. option to render the event rectangle manually in BeforeEventRender
I believe #2 would be more powerful.
Comment posted by Dan Letecky 3 years ago.
New Reply
This reply is
Your name (optional):

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