No documentation subpage (
/doc) found for this module.// A tooltip builder class for LGWS (HTML) tooltips
class TooltipBuilder {
constructor(id) {
this.id = id;
this.lines = [];
}
addLine(line) {
this.lines.push(line);
}
build() {
return `<div id="${this.id}" class="lgws-tooltip">${this.lines.map(line => `<div class="lgws-tooltip-line">${line}</div>`).join('')}</div>`;
}
}
exports = { TooltipBuilder }