(caption: string)
| 50 | } |
| 51 | |
| 52 | public addTab(caption: string): HTMLLIElement { |
| 53 | const newTab = document.createElement("li"); |
| 54 | newTab.innerHTML = caption; |
| 55 | newTab.id = `tab-header-${this.container.id}-${this.nextTabId++}`; |
| 56 | const lastTab = this.tabBar.querySelector("li.last-tab"); |
| 57 | this.tabBar.insertBefore(newTab, lastTab); |
| 58 | return newTab; |
| 59 | } |
| 60 | |
| 61 | private makeTabBar(container: HTMLElement): void { |
| 62 | container.classList.add("nav-tabs-container"); |
no test coverage detected