Balloon.setPosition

Syntax

setPosition(x: Number, y: Number, freeArea: PP.Rect, color: PP.Color, borderColor: PP.Color) : PP.Ui.BubbleTreeAlignment;

Parameters

x. X coordinate.

y. Y coordinate.

freeArea. Parent element area that is available for placing. After finishing the method the area occupied with this component is removed from the parent area.

color. Tooltip background color.

borderColor. Tooltip border color.

Description

The setPosition method sets new position of tooltip.

Comments

The method returns the side, at which the tooltip is located - member of the PP.Ui.BubbleTreeAlignment class.

Example

The example of use is given on the page with description of the Balloon.HoverMode property.

See also:

Balloon