DayPilot.Bubble.onLoad

Declaration

onLoad(args)

Parameters

  • args.source
  • args.async
  • args.html
  • args.loaded()

Example (sync)

    dp.bubble = new DayPilot.Bubble({
        cssClassPrefix: "bubble_default",
        onLoad: function(args) {
            var ev = args.source;
            args.html = "testing bubble for: " + ev.text();
        }
    });

Example (async)

    dp.bubble = new DayPilot.Bubble({
        cssOnly: true,
        cssClassPrefix: "bubble_default",
        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);
        }
    });

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