setLink = function setLink(ids, linkStr, tooltip) {
  ids.split(',').forEach(function (_id) {
    var id = _id;
    if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id;

    if (typeof classes[id] !== 'undefined') {
      classes[id].link = _utils__WEBPACK_IMPORTED_MODULE_3__["default"].formatUrl(linkStr, config);

      if (tooltip) {
        classes[id].tooltip = _utils__WEBPACK_IMPORTED_MODULE_3__["default"].sanitize(tooltip, config);
      }
    }
  });
  setCssClass(ids, 'clickable');
}
Called by parser when a click definition is found. Registers an event handler.
@param ids Comma separated list of ids
@param functionName Function to be called on click
@param tooltip Tooltip for the clickable element