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