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

Function createNavEntry

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

Source from the content-addressed store, hash-verified

284 // wrapper which does not fit this single-link element.
285 buildOverviewButton: function () {
286 const createNavEntry = (id, href, className, text, eventHandler) => {
287 let div = document.createElement('div');
288 div.classList.add('app-navigation-entry');
289
290 let a = document.createElement('a');
291 a.id = id;
292 a.setAttribute('href', href);
293 a.classList.add(className, 'analytics-navigation-icon');
294 a.innerText = text;
295 if (eventHandler) a.addEventListener('click', eventHandler);
296
297 div.appendChild(a);
298 return div;
299 };
300
301 let li = document.createElement('li');
302 li.style.marginBottom = "20px";

Callers 1

navigation.jsFile · 0.85

Calls 2

addMethod · 0.45
addEventListenerMethod · 0.45

Tested by

no test coverage detected