/ui/elements/tooltip
Exports tooltip HTML document fragment.
- Source
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:
Properties| Name | Type | Description |
|---|---|---|
params | Object | Params for the tooltip element. |
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
params.data_id | string | <optional> | 'ui-elements-tooltip' | The data-id attribute value for the element, optional. |
params.content | string | <optional> | Text to display on mouseover. Required, if undefined tooltip creation will be skipped. |
- Source
Returns:
The tooltip HTML node.
- Type:
- HTMLElement