The DayPilot.Bubble constructor creates a bubble instance that can display custom HTML for supported DayPilot objects.
Declaration
new DayPilot.Bubble([config])Parameters
config(object) - optional configuration object that specifies properties and event handlers.
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
Bubble [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot