UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

12 lines 453 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.textWithTooltip = textWithTooltip; /** * Wraps the given text in a span with a tooltip if the tooltip is provided. * @param text - The text to wrap * @param tooltip - The tooltip to add */ function textWithTooltip(text, tooltip) { return tooltip ? `<span title=${JSON.stringify(tooltip)}>${text}</span>` : text; } //# sourceMappingURL=html-hover-over.js.map