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

Function createNavEntry

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

Source from the content-addressed store, hash-verified

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

Callers 1

navigation.jsFile · 0.85

Calls 2

addMethod · 0.45
addEventListenerMethod · 0.45

Tested by

no test coverage detected