diff --git a/js/utils.js b/js/utils.js index 5fcb5f7cd..22b8ac862 100644 --- a/js/utils.js +++ b/js/utils.js @@ -849,6 +849,12 @@ const CombodoTooltip = { oOptions['appendTo'] = mAppendTo; } + // Max. width overload + const sMaxWidth = oElem.attr('data-tooltip-max-width'); + if ((sMaxWidth !== undefined) && (sMaxWidth !== '')) { + oOptions['maxWidth'] = sMaxWidth; + } + oOptions['placement'] = oElem.attr('data-tooltip-placement') ?? 'top'; oOptions['trigger'] = oElem.attr('data-tooltip-trigger') ?? 'mouseenter focus';