/ui/elements/tooltip

Exports tooltip HTML document fragment.

Methods

(inner) tooltip(params) → {HTMLElement}

Adds an inline "help" symbol to indicate that the closest sibling has a tooltip information.

const tooltip = mapp.ui.elements.tooltip({
   content: "My tooltip text"
});

In order to use tooltip symbol on entries, set entry.tooltip = <text> to display.

Parameters:
NameTypeDescription
paramsObject

Params for the tooltip element.

Properties
NameTypeAttributesDefaultDescription
params.data_idstring<optional>
'ui-elements-tooltip'

The data-id attribute value for the element, optional.

params.contentstring<optional>

Text to display on mouseover. Required, if undefined tooltip creation will be skipped.

Returns:

The tooltip HTML node.

Type: 
HTMLElement