()
| 181 | } |
| 182 | |
| 183 | addExpandButtons() { |
| 184 | let buttons = document.querySelectorAll(".buttons-copy") |
| 185 | |
| 186 | buttons.forEach(button => { |
| 187 | let ariaControls = button.getAttribute("aria-controls") |
| 188 | let newHTML = `<button id="expandToggle${ariaControls}" aria-controls="${ariaControls}" class="dt-button buttons-html5 expandCollapseButton" tabindex="1" type="button"><span>Expand</span></button>` |
| 189 | |
| 190 | button.insertAdjacentHTML("afterend", newHTML) |
| 191 | |
| 192 | let newButton = document.getElementById(`expandToggle${ariaControls}`) |
| 193 | |
| 194 | newButton.onclick = function () { |
| 195 | this.innerHTML = this.innerHTML.includes("Expand") ? "Collapse" : "Expand" |
| 196 | document.querySelector("#" + ariaControls).classList.toggle("expandedTable") |
| 197 | } |
| 198 | }) |
| 199 | } |
| 200 | |
| 201 | get orderFromHash() { |
| 202 | const order = this.objectFromHash.order |
no test coverage detected