DayPilot.Bubble Constructor

The DayPilot.Bubble constructor creates a bubble instance that can display custom HTML for supported DayPilot objects.

Declaration

new DayPilot.Bubble([config])

Parameters

Notes

Use the config object to define bubble options such as zIndex and handlers such as onLoad that generate the bubble HTML on demand.

After creating the instance, assign it to the appropriate bubble-related property of the DayPilot component that should display it.

Example

Constructor using the default configuration:

const bubble = new DayPilot.Bubble();

Custom configuration:

const bubble = new DayPilot.Bubble({
  zIndex: 500,
  onLoad: (args) => {
    args.html = args.source.data.text;
  }
});

See Also

DayPilot.Bubble Class

DayPilot.Bubble Properties

DayPilot.Bubble Events

Bubble [doc.daypilot.org]

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript