()
| 27 | } |
| 28 | |
| 29 | refresh() { |
| 30 | if (!this.#table) { |
| 31 | return; |
| 32 | } |
| 33 | |
| 34 | this.#rows = Array.from(this.#tbody?.rows || []).filter(row => !row.hasAttribute('data-table-empty')); |
| 35 | this.#rows.forEach((row, index) => { |
| 36 | row.dataset.tableIndex = row.dataset.tableIndex || String(index); |
| 37 | }); |
| 38 | |
| 39 | this.#syncSelection(); |
| 40 | this.#applyFilter(false); |
| 41 | } |
| 42 | |
| 43 | #init() { |
| 44 | this.#table = this.querySelector('table'); |
no test coverage detected