(checked)
| 228 | } |
| 229 | |
| 230 | #toggleVisibleRows(checked) { |
| 231 | this.#visibleRows().forEach(row => { |
| 232 | const checkbox = row.querySelector('[data-table-select-row]'); |
| 233 | if (checkbox && !checkbox.disabled) { |
| 234 | checkbox.checked = checked; |
| 235 | row.toggleAttribute('data-selected', checked); |
| 236 | } |
| 237 | }); |
| 238 | |
| 239 | this.#syncSelection(); |
| 240 | this.#emitSelection(); |
| 241 | } |
| 242 | |
| 243 | #syncSelection() { |
| 244 | const visibleCheckboxes = this.#visibleRows() |
no test coverage detected