MCPcopy Create free account
hub / github.com/MADEVAL/Oat-Table / refresh

Method refresh

src/table.js:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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');

Callers 2

#initMethod · 0.95
table.test.jsFile · 0.80

Calls 2

#syncSelectionMethod · 0.95
#applyFilterMethod · 0.95

Tested by

no test coverage detected