The position property (string) specifies the bubble position relative to the source object.
The bubble will always try to fit into the current browser window. The position will be adjusted accordingly - in that case it doesn't have to follow the position value exactly.
Declaration
DayPilot.Bubble.positionPossible Values
"Above"- the bubble will be displayed above the target element (default); available since version 2020.1.4245"Right"- the bubble will be displayed on the right side of the target element; available since version 2023.1.5488"Mouse"- the bubble left top will be at the current mouse cursor position"EventTop"- legacy value, translated to"Above"in the latest version
Default Value
"Above"Notes
The "Above" value is available since version 2020.1.4245. In prior versions, use "EventTop". The legacy "EventTop" value will be translated to "Above" in the latest version.
Example
const bubble = new DayPilot.Bubble({
position: "Mouse",
// ...
});See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot