(id, href, className, text, eventHandler)
| 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"; |
no test coverage detected