UNPKG

mapeo-id-bmf

Version:

iD Editor for osm-p2p & mapeo-desktop changed to meet requirements of Bruno Manser Fonds

20 lines (15 loc) 512 B
import { t } from '../util/locale'; export function uiTooltipHtml(text, key, heading) { var s = ''; if (heading) { s += '<div class="tooltip-heading"><span>' + heading + '</span></div>'; } if (text) { s += '<div class="tooltip-text"><span>' + text + '</span></div>'; } if (key) { s += '<div class="keyhint-wrap"><span>' + t('tooltip_keyhint') + '</span>' + '<span class="keyhint">' + key + '</span></div>'; } return s; }