The onLoad event handler is called when the bubble is activated, before the bubble is displayed. You can use it to generate the content dynamically.
DayPilot.Bubble.onLoad(args)
dp.bubble = new DayPilot.Bubble({ onLoad: function(args) { var ev = args.source; args.html = "testing bubble for: " + ev.text(); } });
dp.bubble = new DayPilot.Bubble({ onLoad: function(args) { var ev = args.source; args.async = true; // notify manually using .loaded() // simulating slow server-side load setTimeout(function() { args.html = "testing bubble for: <br>" + ev.text(); args.loaded(); }, 500); } });