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,
// ...
});
scheduler.init();