Tooltip settings that can be passed to the loader to define how the tooltip that is to be opened should look like and behave.

Hierarchy

Properties

alignment?: string

Alignment at current position.

Values

"middle_center" | "above_right" | "below_right" | "below_center_left" | ...

boundaryElement?: boundaryElement
className?: ClassName

Tooltips style class.

closeByButton?: boolean

Show tooltip close button.

closeByClick?: boolean

Close tooltip on click anywhere outside the tooltip.

closeByEsc?: boolean

Close tooltip via ESC key.

dragAble?: boolean

The tooltip can be moved via drag and drop.

fixed?: boolean

Tooltip position relative to viewport (positioning must be set to window or modal).

height?: string | number

Fix tooltip height.

heightUnit?: HeightUnit

Tooltip height unit.

Values

px | vw (viewport width = width: 1-100)

Defaults

px

htmlTarget?: HTMLElement

An element in the Document Object Model (DOM).

keepVisible?: boolean

Tooltip is kept in the visible region, whenever possible.

key?: string

The tooltip identifier.

modal?: boolean

Tooltip is opened modal.

offsetX?: number

Horizontal tooltip offset in px.

offsetY?: number

Vertical tooltip offset in px.

overflowBoundaries?: overflowBoundaries

Keep tooltip in visible range and check specific boundaries. Set true to check boundary.

Defaults

{
bottom: true,
left: true,
right: true,
top: true
}
parent?: string | HTMLElement | ContainerBase

The parent element.

posX?: number

Horizontal tooltip position (depends on position=absolute).

posXUnit?: PosXYUnits

Horizontal tooltip position unit.

Values

px | vw (viewport width = width: 1-100)

Defaults

px

posY?: number

Vertical tooltip position (depends on position=absolute).

posYUnit?: PosXYUnits

Vertical tooltip position unit.

Values

px | vw (viewport width = width: 1-100)

Defaults

px

position?: Position

Tooltip positioning.

Values

absolute | element (depends on htmlTarget) | embedded (depends on htmlTarget) | modal | mouse | window | ""

title?: string | boolean

Tooltip title.

width?: string | number

Fix tooltip width.

widthUnit?: WidthUnit

Tooltip width unit.

Values

px | vw (viewport width = width: 1-100)

Defaults

px