MCPcopy Create free account
hub / github.com/Rello/analytics / createNavEntry

Function createNavEntry

js/navigation.js:262–275  ·  view source on GitHub ↗
(id, href, className, text, eventHandler)

Source from the content-addressed store, hash-verified

260 // wrapper which does not fit this single-link element.
261 buildOverviewButton: function () {
262 const createNavEntry = (id, href, className, text, eventHandler) => {
263 let div = document.createElement('div');
264 div.classList.add('app-navigation-entry');
265
266 let a = document.createElement('a');
267 a.id = id;
268 a.setAttribute('href', href);
269 a.classList.add(className);
270 a.innerText = text;
271 if (eventHandler) a.addEventListener('click', eventHandler);
272
273 div.appendChild(a);
274 return div;
275 };
276
277 let li = document.createElement('li');
278 li.style.marginBottom = "20px";

Callers 1

navigation.jsFile · 0.85

Calls 2

addMethod · 0.45
addEventListenerMethod · 0.45

Tested by

no test coverage detected