React VectorMap - Tooltip

Configures tooltips.

import { VectorMapTypes } from "devextreme-react/vector-map"

contentTemplate

Specifies a custom template for a tooltip.

Type:

template

| undefined
Function parameters:

Information on the area or marker being pressed or hovered over. To distinguish between areas and markers, use the info.layer.type field.

element:

HTMLElement | jQuery

The tooltip's container. It is an HTML Element or a jQuery Element when you use jQuery.

Return Value:

String

|

Element

|

jQuery

One of the following:

  • HTML markup as a string
  • A DOM node
  • A DOM node wrapped in a jQuery element
Default Value: undefined

customizeTooltip

Specifies text and appearance of a set of tooltips.

Type:

Function

| undefined
Function parameters:

Information on the area or marker being pressed or hovered over with the mouse pointer.

Return Value:

Object

The tooltip's text or markup and color.

Default Value: undefined
Cannot be used in themes.