* Returns the tabpanels.
()
| 168 | * Returns the tabpanels. |
| 169 | */ |
| 170 | getTabpanels(): HTMLElement[] { |
| 171 | let tabpanels = [] as HTMLElement[]; |
| 172 | for (let tab of this.getTabs()) { |
| 173 | let controlId = tab.getAttribute('aria-controls'); |
| 174 | let panel = controlId != null ? document.getElementById(controlId) : null; |
| 175 | if (panel != null) { |
| 176 | tabpanels.push(panel); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | return tabpanels; |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * Returns the tabs in the tablist. |
no test coverage detected