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" | ...

appendTo?: HTMLElement

Tooltip parent container. Avoid different offsetContainer (position=element)

autoClose?: boolean

Should the tooltip close itself in an interval.

autoCloseInterval?: number

Time in milliseconds (ms).

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.

containertype?: ContainerType
content: string | HTMLElement | JQuery<HTMLElement> | HTMLElement[]

Tooltip content.

contentReplace?: boolean

Tooltip removes content in target container. Requires tooltip positioning embedded.

contentRestore?: boolean

Tooltip restores content of his target container on close. Requires tooltip positioning embedded.

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).

isNotifier?: boolean
isPersisting?: boolean
isTarget?: boolean
keepVisible?: boolean

Tooltip is kept in the visible region, whenever possible.

key?: string

The tooltip identifier.

maxHeight?: string | number

Fix tooltip maximal height.

maxHeightUnit?: string

Tooltip maximal height unit.

Values

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

Defaults

px

maxWidth?: string | number

Fix tooltip maximal width.

maxWidthUnit?: string

Tooltip maximal width unit.

Values

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

Defaults

px

modal?: boolean

Tooltip is opened modal.

noParentRef?: boolean
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 | ""

scrollable?: boolean

Content is scrollable in TT_Content container.

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

windowSettings?: {
    closeByButton?: boolean;
    contentRestore?: boolean;
    key?: string;
}

Type declaration

  • Optional closeByButton?: boolean
  • Optional contentRestore?: boolean
  • Optional key?: string
zIndex?: string

Sets the tooltips z-index.