How to handle object data inside html property in the Scheduler?
Asked by pushplata 4 years ago.
Hi,
I'm trying to put <b>{object.name}</b> inside html property for events but I'm getting [ object. Object] as response in the view. Kindly help how to handle the object data.
Answer posted by Dan Letecky [DayPilot] 4 years ago.
In React, the "html" property supports a string with HTML, but not JSX.
You can use JavaScript template literal (with backtick quotes) to insert variables into the HTML string. However, remember that the value isn't HTML-encoded in this case: